GlobalTime.h

00001 #ifndef GLOBAL_TIME_H
00002 #define GLOBAL_TIME_H 1
00003 
00004 #include <omnetpp.h>
00005 
00006 /*
00007  * GlobalTime provides information about the local opinion of the global time value
00008  * Default implementation cheats and just uses simTime, but subclasses should do
00009  * proper network-wide synchronisation
00010  */
00011 
00012 class GlobalTime: public cSimpleModule
00013 {
00014   public: 
00015       //Module_Class_Members(GlobalTime, cSimpleModule, 0);
00016     virtual const simtime_t currentGlobalTime() const {return simTime();}
00017 };
00018 #endif