Public Member Functions | Protected Attributes | List of all members
utilities::time::stopwatch Class Reference

#include <stopwatch.h>

Public Member Functions

clock::duration get_elapsed () const
 
double get_elapsed_ms () const
 
clock::time_point get_start () const
 
void reset (clock::time_point start_time=clock::now()) const
 
 stopwatch ()
 

Protected Attributes

clock::time_point _start
 

Detailed Description

Definition at line 14 of file stopwatch.h.

Constructor & Destructor Documentation

utilities::time::stopwatch::stopwatch ( )
inline

Definition at line 18 of file stopwatch.h.

Member Function Documentation

clock::duration utilities::time::stopwatch::get_elapsed ( ) const
inline

Definition at line 36 of file stopwatch.h.

double utilities::time::stopwatch::get_elapsed_ms ( ) const
inline

Definition at line 30 of file stopwatch.h.

clock::time_point utilities::time::stopwatch::get_start ( ) const
inline

Definition at line 42 of file stopwatch.h.

void utilities::time::stopwatch::reset ( clock::time_point  start_time = clock::now()) const
inline

Definition at line 24 of file stopwatch.h.

Member Data Documentation

clock::time_point utilities::time::stopwatch::_start
mutableprotected

Definition at line 48 of file stopwatch.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:43