[TriLUG] clock() from time.h

Michael Tharp gxti at partiallystapled.com
Thu May 18 16:58:44 EDT 2006


Randall Barlow wrote:
> My intention was to see wall-clock time - do you know of something
> that will give me this in both windows and linux?  If not, do you know
> something that will under linux (and I can just use preprocessor
> directives to check whether I am in Linux or Windows at compile time...)
Linux has time() for the unix epoch time(rounded to the nearest second),
and gettimeofday() for microsecond precision. Not sure what the windows
equivelant is, if it does not have gettimeofday, it has something like it.




More information about the TriLUG mailing list