Eric Boutin wrote:
On Sat, 11 Dec 2004 14:04:42 +0100, Szymon Bobek wrote :
Hello,
Is it possible to get time with precission to 1/100 of second using
time.h? If yes - how? If not - where should I search for function which
can do it?
Thanx,
Szymon
first time.h is deprecated;
you should use <ctime> instead;
here's the reference for this header :
http://www.cplusplus.com/ref/ctime/
there's no miliseconds.. I think you'll have to be OS-specifics..
if programming for POSIX, go read this :
http://www.gnu.org/software/libc/manual/html_mono/libc.html#Date%20and%20Time
If programming for Windows, the windows multimedia librairy have what you
need. gettime or timegettime not shure... lookup msdn
hope it helped
Hi!
You can uses something like this:
while(){
clock_t clockTemp = 0;
clock_t clockA = clock();
operationer
clock_t clockB = clock();
clockTemp += (clockB-clockA);
}
clockTemp/CLOCKS_PER_SEC;
Jens
.