trick/trick_source/sim_services/Timer/src/Timer.cpp

29 lines
492 B
C++
Raw Normal View History

2015-02-26 15:02:31 +00:00
/*
PURPOSE:
( Base Timer class )
PROGRAMMERS:
((Alex Lin) (NASA) (August 2010) (--) (c++ port)))
*/
#include "sim_services/Timer/include/Timer.hh"
Trick::Timer::Timer() : enabled(false) , active(false) {}
int Trick::Timer::enable() {
enabled = true ;
return(0) ;
}
int Trick::Timer::disable() {
enabled = false ;
return(0) ;
}
bool Trick::Timer::get_enabled() {
return(enabled) ;
}
void Trick::Timer::set_active(bool in_active) {
active = in_active ;
}