Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
StopWatch Class Reference

#include <elm/sys/StopWatch.h>

Public Member Functions

void start (void)
 
void stop (void)
 
Time delay (void) const
 
Time startTime (void) const
 
Time stopTime (void) const
 

Detailed Description

This class implements a stopwatch for measuring working time of program. Create a stopwatch, call start() just before the code to measure and stop() jus after it and delay() will return the time execute in process time (if the OS allows this).

Member Function Documentation

◆ delay()

time_t delay ( void  ) const
inline

Get the delay in micro-seconds between the start() call and the stop() call.

Returns
Delay in micro-seconds.

◆ start()

void start ( void  )

Must be called at the start of the time to measure.

◆ startTime()

time_t startTime ( void  ) const
inline

Get the time when the start() has been called.

Returns
Start time in micro-seconds.

◆ stop()

void stop ( void  )

Must be called at the end of the time to measure.

◆ stopTime()

Time stopTime ( void  ) const
inline

The documentation for this class was generated from the following files: