MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Member Functions | List of all members
util::WallTimer Class Reference

Cross-platform high-resolution real-time timer. More...

#include <timer.h>

Public Member Functions

 WallTimer (void)
 
std::size_t get_elapsed (void) const
 Returns the milli seconds since last reset.
 
float get_elapsed_sec (void) const
 Returns the seconds since last reset.
 
void reset (void)
 

Detailed Description

Cross-platform high-resolution real-time timer.

This implementation returns milli seconds as smallest unit.

Definition at line 29 of file timer.h.

Constructor & Destructor Documentation

◆ WallTimer()

util::WallTimer::WallTimer ( void  )
inline

Definition at line 82 of file timer.h.

Member Function Documentation

◆ get_elapsed()

std::size_t util::WallTimer::get_elapsed ( void  ) const
inline

Returns the milli seconds since last reset.

Definition at line 94 of file timer.h.

◆ get_elapsed_sec()

float util::WallTimer::get_elapsed_sec ( void  ) const
inline

Returns the seconds since last reset.

Definition at line 101 of file timer.h.

◆ reset()

void util::WallTimer::reset ( void  )
inline

Definition at line 88 of file timer.h.


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