diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-06 18:59:44 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-06 18:59:44 +0000 |
commit | 4c7ae59996c2743152928abd81831a2ab5e788b6 (patch) | |
tree | 859da5352251011da9b194a5c7caaa20f6330125 /indra/llcommon/lltimer.h | |
parent | dfdd4a5e7ca9f8f95cb8d6739176d2aeb826baca (diff) |
move LLEventTimer into its own source module. everyone includes it, almost no-one wants it. now I can dick with it a bit without rebuilding the world, at least. :)
Diffstat (limited to 'indra/llcommon/lltimer.h')
-rw-r--r-- | indra/llcommon/lltimer.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/indra/llcommon/lltimer.h b/indra/llcommon/lltimer.h index 63e8121b58..baba95bfa1 100644 --- a/indra/llcommon/lltimer.h +++ b/indra/llcommon/lltimer.h @@ -39,8 +39,6 @@ #include <limits.h> #include "stdtypes.h" -#include "lldate.h" -#include "llinstancetracker.h" #include <string> #include <list> @@ -171,26 +169,6 @@ LL_COMMON_API struct tm* utc_to_pacific_time(time_t utc_time, BOOL pacific_dayli LL_COMMON_API void microsecondsToTimecodeString(U64 current_time, std::string& tcstring); LL_COMMON_API void secondsToTimecodeString(F32 current_time, std::string& tcstring); -// class for scheduling a function to be called at a given frequency (approximate, inprecise) -class LL_COMMON_API LLEventTimer : protected LLInstanceTracker<LLEventTimer> -{ -public: - LLEventTimer(F32 period); // period is the amount of time between each call to tick() in seconds - LLEventTimer(const LLDate& time); - virtual ~LLEventTimer(); - - //function to be called at the supplied frequency - // Normally return FALSE; TRUE will delete the timer after the function returns. - virtual BOOL tick() = 0; - - static void updateClass(); - -protected: - LLTimer mEventTimer; - F32 mPeriod; - static bool sInTickLoop; -}; - U64 LL_COMMON_API totalTime(); // Returns current system time in microseconds #endif |