next up previous
Next: read_stopwatch() Up: Brain Volume I/O Handling Previous: flipvol_tb()

start_stopwatch()  

Start internal stopwatch



Synopsis


start_stopwatch(void)


Description
Call this function to reset a stopwatch. The stopwatch uses the times() function and the "struct tms" from sys/times.h.

Usage

Call start_stopwatch() to reset the stopwatch before executing the task you want to time, and read_stopwatch() or read_stopwatch_string() to read the elapsed time afterwards.

Revision


1.0  29/10-96   Ulrik Kjems


Program listing






Ulrik Kjems
6/3/1998