22 lines
325 B
C
22 lines
325 B
C
|
|
#pragma once
|
||
|
|
#include <iostream>
|
||
|
|
#include <chrono>
|
||
|
|
|
||
|
|
namespace CVrDateUtils
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* 获取时间年月日时分秒
|
||
|
|
*/
|
||
|
|
std::string GetNowTime();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取时间:年-月-日 时:分:秒
|
||
|
|
*/
|
||
|
|
std::string GetStrNowTime(bool bYear = true);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取微妙时间戳
|
||
|
|
*/
|
||
|
|
unsigned long long GetTimestamp();
|
||
|
|
|
||
|
|
};
|