OpenDaVINCI  4.15.3
odcontext::base::Clock Class Reference

#include <Clock.h>

Public Member Functions

 Clock ()
 
 Clock (const uint32_t &s, const uint32_t &ps)
 
 Clock (const Clock &obj)
 
virtual ~Clock ()
 
Clockoperator= (const Clock &obj)
 
const ControlledTime now () const
 
void increment (const uint32_t &ms)
 

Detailed Description

This class provides a clock.

Constructor & Destructor Documentation

odcontext::base::Clock::Clock ( )
odcontext::base::Clock::Clock ( const uint32_t &  s,
const uint32_t &  ps 
)

Constructor.

Parameters
sSeconds.
psPartial microseconds.
odcontext::base::Clock::Clock ( const Clock obj)

Copy constructor.

Parameters
objObject from same type.
odcontext::base::Clock::~Clock ( )
virtual

Member Function Documentation

void odcontext::base::Clock::increment ( const uint32_t &  ms)
const ControlledTime odcontext::base::Clock::now ( ) const

This method returns the actual time.

Returns
Actual time.

Referenced by operator=().

Clock & odcontext::base::Clock::operator= ( const Clock obj)

Assignment operator.

Parameters
objObject from same type.
Returns
(*this).

References now().