#include <Clock.h>
Collaboration diagram for vpr::sim::Clock:

Public Methods | |
| Clock (void) | |
| const vpr::Interval & | getCurrentTime (void) const |
| void | setCurrentTime (const vpr::Interval &time) |
The basic unit of time is tens of microseconds since that is what vpr::Interval uses.
Definition at line 62 of file Clock.h.
|
|
Definition at line 65 of file Clock.h.
00066 : mCurrentTime(0, vpr::Interval::Base) 00067 { 00068 /* Do nothing. */ ; 00069 } |
|
|
Definition at line 71 of file Clock.h. Referenced by vpr::SocketStreamImplSIM::accept, vpr::sim::SocketManager::connect, vpr::sim::Controller::processEvents, vpr::sim::Controller::processNextEvent, and vpr::sim::SocketManager::sendMessage.
00072 {
00073 return mCurrentTime;
00074 }
|
|
|
Definition at line 76 of file Clock.h. Referenced by vpr::sim::Controller::processEvents, and vpr::sim::Controller::processNextEvent.
00077 {
00078 if ( time > mCurrentTime )
00079 {
00080 mCurrentTime = time;
00081 }
00082 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002