clock() function problem
I have a strange problem. Here is the code:
clockNow = clock();
clock() always returns zero. why ??????
I'm using RedHat 2.6.5-7, but it has happened on machines with different distributions also. This machine is a server.
This, on the other hand, works fine:
time( &timeNow );
but I need something with higher accuracy than seconds.
Any comments are welcome...