Displaying 1 result from an estimated 1 matches for "c_sec".
Did you mean:
wc_sec
2000 Aug 01
2
ogg123 timekeeping
...1); /* Seconds with double precision */
gettimeofday (&start_time, NULL);
t_min = (long) info.u_time / (long) 60;
t_sec = info.u_time - 60 * t_min;
while (! eos)
{
gettimeofday (&cur_time, NULL);
c_min = (long) (cur_time.tv_sec - start_time.tv_sec) / (long) 60;
c_sec = (cur_time.tv_sec - start_time.tv_sec) - 60 * c_min +
((cur_time.tv_usec - start_time.tv_usec) / 1000000.0);
</snip>
Scream now! I'm committing...
I know time functions like this have easy equivalents on other OSes.
Kenneth
--- >8 ----
List archives: http://www.xiph.org/a...