- Timestamp:
- May 30, 2018, 2:37:02 PM (7 years ago)
- Location:
- code/branches/PresentationFS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/PresentationFS18
- Property svn:mergeinfo changed
-
code/branches/PresentationFS18/src/libraries/tools/Timer.h
r12015 r12016 108 108 109 109 Timer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall = false); 110 Timer(float interval, bool bLoop, std::function<void (void)> func, bool bKillAfterCall = false); 110 111 111 112 void setTimer(float interval, bool bLoop, const ExecutorPtr& executor, bool bKillAfterCall = false); 113 void setTimer(float interval, bool bLoop, std::function<void (void)> func, bool bKillAfterCall = false); 112 114 113 115 void run(); … … 154 156 155 157 ExecutorPtr executor_; //!< The executor of the function that will be called when the time expires 158 std::function<void (void)> function_; 156 159 160 bool isStdFunction_; 157 161 long long interval_; //!< The time-interval in micro seconds 158 162 bool bLoop_; //!< If true, the executor gets called every @a interval seconds
Note: See TracChangeset
for help on using the changeset viewer.