赞
踩
s=秒,ms=毫秒,us=微秒,ns=纳秒;
1s=1000ms=1000000us=1000000000ns;
int main() { std::cout << "------TimeDelta------\n"; std::cout << L"FromDays(天):" << base::TimeDelta::FromDays(1)<<"\n"; std::cout << L"FromHours(小时):" << base::TimeDelta::FromHours(1) << "\n"; std::cout << L"FromInternalValue(微秒):" << base::TimeDelta::FromInternalValue(1000000) << "已弃用\n"; std::cout << L"FromMicroseconds(微秒):" << base::TimeDelta::FromMicroseconds(1000000) << "\n"; std::cout << L"FromMicrosecondsD(微秒):" << base::TimeDelta::FromMicrosecondsD(1000000) << "\n"; std::cout << L"FromMilliseconds(毫秒):" << base::TimeDelta::FromMilliseconds(1000) << "\n"; std::cout << L"FromMillisecondsD(毫秒):" << base::TimeDelta::FromMillisecondsD(1000) << "\n"; std::cout << L"FromMinutes(分):" << base::TimeDelta::FromMinutes(1) << "\n"; std::cout << L"FromNanoseconds(纳秒):" << base::TimeDelta::FromNanoseconds(1000000000) << "\n"; std::cout << L"FromNanosecondsD(纳秒):" << base::TimeDelta::FromNanosecondsD(1000000000) << "\n"; std::cout << L"FromSeconds(秒):" << base::TimeDelta::FromSeconds(1) << "\n"; std::cout << L"FromSecondsD(秒):" << base::TimeDelta::FromSecondsD(1) << "\n"; std::cout << L"Max: " << base::TimeDelta::Max() << "\n"; std::cout << L"Min: " << base::TimeDelta::Min() << "\n"; //std::cout << "FromQPCValue:1 " << base::TimeDelta::FromQPCValue(1) << "\n"; //std::cout << base::TimeDelta::FromWinrtDateTime() << "\n"; //std::cout << "FromFileTime:" << base::TimeDelta::FromFileTime() << "\n"; char* cData = new char[256]; std::cin >> cData; base::AtExitManager ax; return 0; }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。