cxxitimer 2.0.5
A C++ library to handle linux interval timer
Loading...
Searching...
No Matches
cxxitimer Namespace Reference

Classes

class  ITimer
 abstract class ITimer More...
 
class  ITimer_Prof
 class ITimer_Prof More...
 
class  ITimer_Real
 class ITimer_Real More...
 
class  ITimer_Virtual
 class ITimer_Virtual More...
 

Functions

timeval & operator*= (timeval &left, double right) noexcept
 
itimerval & operator*= (itimerval &left, double right) noexcept
 
timeval operator* (const timeval &left, double right) noexcept
 
itimerval operator* (const itimerval &left, double right) noexcept
 
timeval & operator/= (timeval &left, double right) noexcept
 
itimerval & operator/= (itimerval &left, double right) noexcept
 
timeval operator/ (const timeval &left, double right) noexcept
 
itimerval operator/ (const itimerval &left, double right) noexcept
 
double timeval_to_double (const timeval &time) noexcept
 
timeval double_to_timeval (const double time) noexcept
 

Variables

static constexpr itimerval STOP_TIMER = {}
 
constexpr auto USEC_PER_SEC = static_cast<double>(1000000)
 

Function Documentation

◆ double_to_timeval()

timeval cxxitimer::double_to_timeval ( const double  time)
noexcept

Definition at line 340 of file cxxitimer.cpp.

References USEC_PER_SEC.

Referenced by cxxitimer::ITimer::ITimer(), cxxitimer::ITimer::ITimer(), operator*=(), operator/=(), and cxxitimer::ITimer::set_interval_value().

Here is the caller graph for this function:

◆ operator*() [1/2]

itimerval cxxitimer::operator* ( const itimerval &  left,
double  right 
)
noexcept

Definition at line 305 of file cxxitimer.cpp.

References operator*=().

Here is the call graph for this function:

◆ operator*() [2/2]

timeval cxxitimer::operator* ( const timeval &  left,
double  right 
)
noexcept

Definition at line 299 of file cxxitimer.cpp.

References operator*=().

Referenced by cxxitimer::ITimer::get_timer_value(), and cxxitimer::ITimer::stop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=() [1/2]

itimerval & cxxitimer::operator*= ( itimerval &  left,
double  right 
)
noexcept

Definition at line 293 of file cxxitimer.cpp.

References operator*=().

Referenced by operator*().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=() [2/2]

timeval & cxxitimer::operator*= ( timeval &  left,
double  right 
)
noexcept

Definition at line 287 of file cxxitimer.cpp.

References double_to_timeval(), and timeval_to_double().

Referenced by cxxitimer::ITimer::adjust_speed(), operator*(), operator*=(), and cxxitimer::ITimer::to_fstream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator/() [1/2]

itimerval cxxitimer::operator/ ( const itimerval &  left,
double  right 
)
noexcept

Definition at line 329 of file cxxitimer.cpp.

References operator/=().

Here is the call graph for this function:

◆ operator/() [2/2]

timeval cxxitimer::operator/ ( const timeval &  left,
double  right 
)
noexcept

Definition at line 323 of file cxxitimer.cpp.

References operator/=().

Referenced by cxxitimer::ITimer::adjust_speed(), and cxxitimer::ITimer::start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator/=() [1/2]

itimerval & cxxitimer::operator/= ( itimerval &  left,
double  right 
)
noexcept

Definition at line 317 of file cxxitimer.cpp.

References operator/=().

Referenced by operator/().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator/=() [2/2]

timeval & cxxitimer::operator/= ( timeval &  left,
double  right 
)
noexcept

Definition at line 311 of file cxxitimer.cpp.

References double_to_timeval(), and timeval_to_double().

Referenced by operator/(), and operator/=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timeval_to_double()

double cxxitimer::timeval_to_double ( const timeval &  time)
noexcept

Definition at line 335 of file cxxitimer.cpp.

References USEC_PER_SEC.

Referenced by operator*=(), and operator/=().

Here is the caller graph for this function:

Variable Documentation

◆ STOP_TIMER

constexpr itimerval cxxitimer::STOP_TIMER = {}
staticconstexpr

Definition at line 16 of file cxxitimer.cpp.

Referenced by cxxitimer::ITimer::adjust_speed(), and cxxitimer::ITimer::stop().

◆ USEC_PER_SEC

constexpr auto cxxitimer::USEC_PER_SEC = static_cast<double>(1000000)
constexpr

Definition at line 19 of file cxxitimer.cpp.

Referenced by double_to_timeval(), and timeval_to_double().