SAT Solver Template
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
sat::StopWatch Class Reference

Used to measure time between start a start and a stop event. More...

#include <Profiler.hpp>

Inheritance diagram for sat::StopWatch:
Inheritance graph
[legend]

Public Member Functions

 StopWatch ()
 
void start ()
 
TimingEvent getTiming () const
 
template<typename T >
auto elapsed () const
 

Protected Attributes

detail::TP startTp
 

Detailed Description

Used to measure time between start a start and a stop event.

Constructor & Destructor Documentation

◆ StopWatch()

sat::StopWatch::StopWatch ( )

Ctor. Starts the timer

Member Function Documentation

◆ elapsed()

template<typename T >
auto sat::StopWatch::elapsed ( ) const
inline

Get the number of elapsed time units

Template Parameters
Ttime unit
Returns
number of time units since call to start

◆ getTiming()

TimingEvent sat::StopWatch::getTiming ( ) const

Get the timing event since the last call to start and the time of the call

Returns
TimingEvent with start point set to the last call to start() and end event the current time

◆ start()

void sat::StopWatch::start ( )

Resets the start event to the current time


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