xorp

SystemClock Class Reference

An implementation of ClockBase that uses the underlying system's 'get current system time' function as it's clock source. More...

#include <clock.hh>

Inheritance diagram for SystemClock:
ClockBase NONCOPYABLE

List of all members.

Public Member Functions

void advance_time ()
 Update internal concept of time.
void current_time (TimeVal &tv)
 Get time it was when advance_time() was last called.

Private Attributes

TimeVal_tv

Detailed Description

An implementation of ClockBase that uses the underlying system's 'get current system time' function as it's clock source.


Member Function Documentation

void SystemClock::current_time ( TimeVal tv) [virtual]

Get time it was when advance_time() was last called.

Successive calls to current_time return the same value. Time only advances when advance_time() is called.

Parameters:
tvTimeVal to be filled in with current time.

Implements ClockBase.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations