25.1 OEStopWatch

The OESystem::OEStopWatch class provides timer functionality. An application may contain multiple stopwatches, by declaring multiple instances OEStopWatch. The OEStopWatch::Start() method is used to start the timer, and the OEStopWatch::Elapsed() method returns the elapsed time as a floating point value.

One quirk of the OEStopWatch class is that to work around operating system limitations, values below 2147 seconds (about 35 minutes) are based on a high-resolution CPU-usage timer (using ``clock(3)'') and after that report Wall-clock times accurate to about a second (using ``time(3)'').