19 lines
550 B
C++
19 lines
550 B
C++
#include <stdlib.h>
|
|
#include <time.h>
|
|
|
|
#include "Buffer.h"
|
|
|
|
#include "Environment.h"
|
|
|
|
const TEnvironment Environment;
|
|
|
|
/************************************************ TEnvironment ************************************************/
|
|
// 获取系统启动后经过的毫秒数
|
|
UInt64 TEnvironment::TickCount() const { return clock(); }
|
|
|
|
// 获取系统启动后经过的毫秒数
|
|
UInt64 TEnvironment::Ms() const { return clock(); }
|
|
|
|
// 获取当前计算机上的处理器数
|
|
int TEnvironment::ProcessorCount() const { return 1; }
|