【发布时间】:2012-12-11 13:20:19
【问题描述】:
对于我使用的 Windows,是否有跨平台解决方案来获得自纪元以来的秒数
long long NativesGetTimeInSeconds()
{
return time (NULL);
}
但是如何上 Linux 呢?
【问题讨论】:
-
在 Linux 上尝试该功能时会发生什么?
-
你看过Boost Date Time Library - boost.org/doc/libs/1_57_0/doc/html/date_time/posix_time.html