mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-09 02:17:11 +02:00
Update POCO library.
This commit is contained in:
@ -29,27 +29,27 @@ public:
|
||||
{
|
||||
_sw.start();
|
||||
}
|
||||
|
||||
|
||||
void onTimer(Timer& timer)
|
||||
{
|
||||
std::cout << "Callback called after " << _sw.elapsed()/1000 << " milliseconds." << std::endl;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
Stopwatch _sw;
|
||||
};
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
{
|
||||
TimerExample example;
|
||||
|
||||
Timer timer(250, 500);
|
||||
timer.start(TimerCallback<TimerExample>(example, &TimerExample::onTimer));
|
||||
|
||||
|
||||
Thread::sleep(5000);
|
||||
|
||||
|
||||
timer.stop();
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user