Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

time in C

Hi friends, do you know how to compute time in milliseconds? It should run on unix OS, thanks.
[94 byte] By [osamahelp] at [2007-11-11 7:56:18]
# 1 Re: time in C
I know it is UNIX..

But Im sure many of the same functions etc are the same! Check out this link at MSDN --> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_clock.asp
Code_Nerd at 2007-11-11 21:01:41 >
# 2 Re: time in C
This link discusses a stopwatch class that computes time in TICKS, which are usually milliseconds. In Unix you have more accurate time APIs that count microseconds as well. Look at struct timeval and its assocaited functions in sys/types.h and unistd.h
Danny at 2007-11-11 21:02:41 >