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();
clock_t last_num_ticks
Counters the value of the number of ticks from the last call.
double start()
Resets the internal counters and returns the wall clock time in seconds.
unsigned int clock_rollovers
Number of clock rollovers since the last initialization.
clock_t start_ticks
Counter containing the value of the number of ticks from the first call (or the reset call).
double secondsWC()
Returns the wall clock time in seconds since the last reset.
const double inv_clocks_per_sec
internal constant containing clock ticks per second
const double clock_width
internal constant containing the total number of ticks per rollover.
Declarations for a simple class that implements an Ansi C wall clock timer (see Cantera::clockWC).
Namespace for the Cantera kernel.