- A Logic Circuit Simulation Library in C++ |
#include <systime.h>
Static Public Member Functions | |
static unsigned int | getTime (void) |
static void | notifyTick (TickListener *tl) |
static void | notifyLine (List< Line * > *refList) |
static void | stopLineNotification (List< Line * > *refList) |
static void | notifyClock (Clock *clk) |
static void | stopClockNotification (void) |
static void | stopTickNotification (TickListener *tl) |
Friends | |
class | Simulation |
static unsigned int lcs::SystemTimer::getTime | ( | void | ) | [static] |
Returns the system time in system time units
static void lcs::SystemTimer::notifyClock | ( | Clock * | clk | ) | [static] |
The singleton lcs::Clock
class object requests time tick notification through this function call.
static void lcs::SystemTimer::notifyTick | ( | TickListener * | tl | ) | [static] |
An object which is an instance of a derivative of the class lcs::TickListener
can register with the SystemTimer
to be notified of time ticks using this function.
tl | Pointer to the object which is an instance of a derivative of the class lcs::TickListener |
static void lcs::SystemTimer::stopClockNotification | ( | void | ) | [static] |
The signleton lcs::Clock
class object de-registers from being notified of a time tick through this function call.
static void lcs::SystemTimer::stopTickNotification | ( | TickListener * | tl | ) | [static] |
A lcs::TickListener
derivative which registered to be notified of a time tick should de-register using this function when notification is no longer required. Hence, this function should be called before the object ceases to exist in the simulation system. Else, a segmentation fault is bound to occur.
friend class Simulation [friend] |
lcs::Simulation
is friend of this class and manages the duties of starting and stopping the system time keeper.