Emx::Time类 参考

时间相关函数

#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 ()
 获取系统的时间是否已经同步 更多...
 

成员函数说明

◆ GetMs64()

static uint64_t Emx::Time::GetMs64 ( )
static

被这些函数引用 GetMs().

◆ GetMs()

static uint32_t Emx::Time::GetMs ( )
inlinestatic

◆ GetS()

static uint32_t Emx::Time::GetS ( )
static

◆ GetMonoClockNs()

static uint64_t Emx::Time::GetMonoClockNs ( )
static

◆ GetMonoClockUs()

static uint64_t Emx::Time::GetMonoClockUs ( )
static

被这些函数引用 GetMonoClockMS().

◆ GetMonoClockMS()

static uint64_t Emx::Time::GetMonoClockMS ( )
inlinestatic

被这些函数引用 Emx::TimeRec::GetInv() , 以及 Emx::TimeRec::Update().

◆ GetTimeStrNow()

static char* Emx::Time::GetTimeStrNow ( char *  timeStr,
int  maxSize 
)
static
参数
timeStr[in,out]时间字符串buffer
maxSize[in]时间字符串buffer大小
返回
timeStr

◆ GetTimeStr()

static char* Emx::Time::GetTimeStr ( uint32_t  utc,
char *  timeStr,
int  maxSize 
)
static
参数
utc[in]指定的UTC时间
timeStr[in,out]时间字符串buffer
maxSize[in]时间字符串buffer大小
返回
timeStr

◆ SetSysTime()

static void Emx::Time::SetSysTime ( uint32_t  utc)
static
参数
utc[in]UTC时间

◆ SetSysDate()

static void Emx::Time::SetSysDate ( const char *  date)
static
参数
date[in]日期字符串,格式Y-m-d H:M:S

◆ GetTimeSync()

static bool Emx::Time::GetTimeSync ( )
static