Menu

Outputting Timers

Iain Miller

Outputting Timers

The results of the timers will be output when PMTM is finalised with [PMTM_finalise] or using the [PMTM_timer_output] routine to output all timers associated with a given instance. The times can also be retrieved directly from the timers for general use with the calling code, i.e. to output to the results file.

The [PMTM_get_cpu_time] and [PMTM_get_wc_time] routines retrieve the current timer CPU time and wall-clock time respectively, i.e. the times recorded for all timing blocks so far. The [PMTM_get_last_cpu_time] and [PMTM_get_last_wc_time] routines retrieve the times for the last timing block only. Whilst [PMTM_get_total_cpu_time] and [PMTM_get_total_wc_time] return the total cumulative time spent in the given timer block.


Related

Wiki: PMTM
Wiki: PMTM_finalize

MongoDB Logo MongoDB