16 last_num_ticks(clock()),
19 inv_clocks_per_sec(1./(double)CLOCKS_PER_SEC),
20 clock_width((double)(1L<<((int)sizeof(clock_t)*8-2))*4./(double)CLOCKS_PER_SEC)
34 clock_t num_ticks = clock();
Declarations for a simple class that implements an Ansi C wall clock timer (see Cantera::clockWC).
const double inv_clocks_per_sec
internal constant containing clock ticks per second
unsigned int clock_rollovers
Number of clock rollovers since the last initialization.
double secondsWC()
Returns the wall clock time in seconds since the last reset.
clock_t last_num_ticks
Counters the value of the number of ticks from the last call.
clock_t start_ticks
Counter containing the value of the number of ticks from the first call (or the reset call)...
const double clock_width
internal constant containing the total number of ticks per rollover.
Namespace for the Cantera kernel.
double start()
Resets the internal counters and returns the wall clock time in seconds.