开发者

Is there a cross-platform header in the standard library that provides access to the current time?

开发者 https://www.devze.com 2022-12-29 11:12 出处:网络
Probably a stupid question, but I couldn\'t find anything searching... Is there a standard header that allows me to fetch the current time? Otherwise is there so开发者_JAVA技巧me cross-platform alter

Probably a stupid question, but I couldn't find anything searching...

Is there a standard header that allows me to fetch the current time? Otherwise is there so开发者_JAVA技巧me cross-platform alternative?


What's wrong with <ctime> ?! It's standard, even MSDN admits:


time.h, and the time function.


use boost date_time. http://www.boost.org/doc/libs/1_40_0/doc/html/date_time/posix_time.html.

0

精彩评论

暂无评论...
验证码 换一张
取 消