#include <stop_watch.hpp>

Public Member Functions

 MicroSecondStopWatch ()
Default constructor that starts the stopwatch. More...
 
void start (void)
Starts the stopwatch operation (can be used to restart the stopwatch too) More...
 
void stop (void)
Stops the stopwatch operation enabling the captured value to be obtained. More...
 
uint64_t getCapturedTime (void) const
 
uint64_t getElapsedTime (void) const
Get the elapsed time since the stopwatch was started. More...
 

Detailed Description

Stopwatch to measure an elapsed time.

Constructor & Destructor Documentation

MicroSecondStopWatch::MicroSecondStopWatch ( )
inline

Default constructor that starts the stopwatch.

Member Function Documentation

uint64_t MicroSecondStopWatch::getCapturedTime ( void  ) const
inline

Get the captured value between start() and stop() If the stopwatch was never stopped, zero value will be returned.

uint64_t MicroSecondStopWatch::getElapsedTime ( void  ) const
inline

Get the elapsed time since the stopwatch was started.

void MicroSecondStopWatch::start ( void  )
inline

Starts the stopwatch operation (can be used to restart the stopwatch too)

void MicroSecondStopWatch::stop ( void  )
inline

Stops the stopwatch operation enabling the captured value to be obtained.


The documentation for this class was generated from the following file:
  • /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L3_Utils/stop_watch.hpp