Fixposition SDK 0.0.0-heads/main-0-gfaec355
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::time::TicToc Class Reference

Helper to measure wallclock time. More...

#include <time.hpp>

Public Member Functions

 TicToc ()
 Constructor.
 
void Tic ()
 (Re-)start measurement
 
Duration Toc (const bool reset=false)
 Get elapsed wallclock time.
 

Detailed Description

Helper to measure wallclock time.

Definition at line 83 of file time.hpp.

Constructor & Destructor Documentation

◆ TicToc()

fpsdk::common::time::TicToc::TicToc ( )

Constructor.

This also starts the measurements, like Tic().

Member Function Documentation

◆ Toc()

Duration fpsdk::common::time::TicToc::Toc ( const bool reset = false)

Get elapsed wallclock time.

Parameters
[in]resetReset (restart) measurements
Returns
the elapsed time since object constructed resp. last call to Tic()

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