Re: need your advice on clock() -
14-01-2004
one other thing - is current_clock, etc. ever negative? it doesn't seem so, therefore why not make those values unsigned longs instead of just longs, and thus get 2^32-1 clock ticks till rollover instead of 2^31-1?
second thing, the return value should probably be a double if you are passing back time_in_seconds, which is a double.
Last edited by dav; 14-01-2004 at 20:25..
|