22 #ifndef __M2ETIS_SIM_OMNETCLOCK_H__
23 #define __M2ETIS_SIM_OMNETCLOCK_H__
25 #include "boost/function.hpp"
30 class OmNetCallbackInterface;
39 explicit OmNetClock(
const boost::function<
void(
void)> & f);
68 const long startTime_;
OmNetClock(const boost::function< void(void)> &f)
constructor receiving update method of Clock subclass
long getCurrentTime(long lastTime)
returns current time of the simulation
void setSim(OmNetCallbackInterface *sim)
sets pointer to simulation module
void Stop()
stops the clock