Permalink
Browse files

Add default arg to CScheduler to schedule() a callback now

  • Loading branch information...
1 parent cda1429 commit 2fbf2dbe151e135586cc1bb05b891f2c8ab6c817 @TheBlueMatt TheBlueMatt committed Jan 20, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scheduler.h
View
@@ -41,7 +41,7 @@ class CScheduler
typedef std::function<void(void)> Function;
// Call func at/after time t
- void schedule(Function f, boost::chrono::system_clock::time_point t);
+ void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now());
// Convenience method: call f once deltaSeconds from now
void scheduleFromNow(Function f, int64_t deltaMilliSeconds);

0 comments on commit 2fbf2db

Please sign in to comment.