Is there a cross-platform header in the standard library that provides access to the current time?
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.
精彩评论