Place this stopwatch in the RUNNING state and begin accumulating elapsed times if this object was in the STOPPED state. Optionally specify a collectCpuTimes flag indicating whether CPU times should be collected. If collectCpuTimes is not specified, then CPU times are not collected. Note that the instantaneous total elapsed times are available from the RUNNING state. Also note that disabling collection of CPU times will result in fewer systems calls and therefore faster measurements. Also note that collectCpuTimes may be expressed using the one of the class level constants k_COLLECT_WALL_TIME_ONLY, and k_COLLECT_WALL_AND_CPU_TIMES for easier immediate understanding of the meaning of the client code.
Declared in <bsls_stopwatch.h>
void
start(bool collectCpuTimes = false);