X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTimer.hh;h=a0bc676b7f130f042d550ac0c1fb25d44faa3386;hp=ed4e2f0bf3a1b59def8fabfb5d999dafee234e88;hb=c9e20ac06383b20ceb5404c9237e319c2e90d157;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/Moof/Timer.hh b/src/Moof/Timer.hh index ed4e2f0..a0bc676 100644 --- a/src/Moof/Timer.hh +++ b/src/Moof/Timer.hh @@ -45,8 +45,10 @@ namespace Mf { -struct Timer +class Timer { +public: + enum Mode { INVALID = -1, @@ -105,7 +107,7 @@ struct Timer static Scalar getNextFire() { - return nextFire_; + return gNextFire; } static void fireIfExpired(Scalar t); @@ -121,8 +123,8 @@ private: Scalar mInterval; unsigned mId; - static Scalar nextFire_; - static std::map timers_; + static Scalar gNextFire; + static std::map gTimers; };