lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
lintel::StopWatchService Class Reference

#include <StopWatchService.h>

Public Member Functions

 StopWatchService (bool run=true)
 constructor for timer. shutdown implies the start or not start of the timer
 
void reset ()
 reset timer if started or start timer if it was not started
 
void stop ()
 possibility to stop timer
 
std::chrono::nanoseconds elapsed () const
 Returns the elapsed time of the timer.
 

Friends

std::ostream & operator<< (std::ostream &os, const StopWatchService &service)
 

Constructor & Destructor Documentation

◆ StopWatchService()

lintel::StopWatchService::StopWatchService ( bool  run = true)
explicit

constructor for timer. shutdown implies the start or not start of the timer

Parameters
runvariable for choose to start or not start the timer
Author
Example User
Date
2019-01-30

Member Function Documentation

◆ elapsed()

std::chrono::nanoseconds lintel::StopWatchService::elapsed ( ) const

Returns the elapsed time of the timer.

Returns
elapsed time as nanoseconds

◆ reset()

void lintel::StopWatchService::reset ( )

reset timer if started or start timer if it was not started

Author
Example User
Date
2019-01-30

◆ stop()

void lintel::StopWatchService::stop ( )

possibility to stop timer

Author
Example User
Date
2019-01-30

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const StopWatchService &  service 
)
friend

Print the elapsed time to an output stream.


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