time.h

来自「本人收集整理的一份c/c++跨平台网络库」· C头文件 代码 · 共 27 行

H
27
字号
#ifndef UTILS_BASE_TIME_H_#define UTILS_BASE_TIME_H_#include "basictypes.h"namespace utils_base {// Returns the current time in milliseconds.uint32 Time();// Approximate time when the program started.uint32 StartTime();// Elapsed milliseconds since StartTime()uint32 ElapsedTime();// TODO: Delete this old version.#define GetMillisecondCount Time// Comparisons between time values, which can wrap around.bool TimeIsBetween(uint32 later, uint32 middle, uint32 earlier);int32 TimeDiff(uint32 later, uint32 earlier);} // namespace utils_base#endif // UTILS_BASE_TIME_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?