![]() |
时间相关函数
#include "Time.hpp"
静态 Public 成员函数 | |
| static uint64_t | GetMs64 () |
| 获取64位当前UTC毫秒时间 更多... | |
| static uint32_t | GetMs () |
| 获取32位当前UTC毫秒时间 更多... | |
| static uint32_t | GetS () |
| 获取32位当前UTC秒时间 更多... | |
| static uint64_t | GetMonoClockNs () |
| 获取64位当前系统启动纳秒时间 更多... | |
| static uint64_t | GetMonoClockUs () |
| 获取64位当前系统启动微秒时间 更多... | |
| static uint64_t | GetMonoClockMS () |
| 获取64位当前系统启动毫秒时间 更多... | |
| static char * | GetTimeStrNow (char *timeStr, int maxSize) |
| 获取当前系统时间字符串,格式YYYY-MM-DD hh:mm:ss 更多... | |
| static char * | GetTimeStr (uint32_t utc, char *timeStr, int maxSize) |
| 获取指定UTC时间字符串,格式YYYY-MM-DD hh:mm:ss 更多... | |
| static void | SetSysTime (uint32_t utc) |
| 获设置系统UTC时间 更多... | |
| static void | SetSysDate (const char *date) |
| 设置系统日期 更多... | |
| static bool | GetTimeSync () |
| 获取系统的时间是否已经同步 更多... | |
|
static |
被这些函数引用 GetMs().
|
inlinestatic |
|
static |
|
static |
|
static |
被这些函数引用 GetMonoClockMS().
|
inlinestatic |
被这些函数引用 Emx::TimeRec::GetInv() , 以及 Emx::TimeRec::Update().
|
static |
| timeStr | [in,out]时间字符串buffer |
| maxSize | [in]时间字符串buffer大小 |
|
static |
| utc | [in]指定的UTC时间 |
| timeStr | [in,out]时间字符串buffer |
| maxSize | [in]时间字符串buffer大小 |
|
static |
| utc | [in]UTC时间 |
|
static |
| date | [in]日期字符串,格式Y-m-d H:M:S |
|
static |