[#BloombergLP-bsls-Stopwatch-start]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Stopwatch.adoc[Stopwatch]::start
:relfileprefix: ../../../
:mrdocs:

Place this stopwatch in the RUNNING state and begin accumulating elapsed times if this object was in the STOPPED state&period; Optionally specify a `collectCpuTimes` flag indicating whether CPU times should be collected&period; If `collectCpuTimes` is not specified, then CPU times are _not_ collected&period; Note that the instantaneous total elapsed times are available from the RUNNING state&period; Also note that disabling collection of CPU times will result in fewer systems calls and therefore faster measurements&period; Also note that `collectCpuTimes` may be expressed using the one of the class level constants `k&lowbar;COLLECT&lowbar;WALL&lowbar;TIME&lowbar;ONLY`, and `k&lowbar;COLLECT&lowbar;WALL&lowbar;AND&lowbar;CPU&lowbar;TIMES` for easier immediate understanding of the meaning of the client code&period;

== Synopsis

Declared in `&lt;bsls&lowbar;stopwatch&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
start(bool collectCpuTimes = false);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
