24 #include <utils/time/clock.h> 25 #include <utils/time/watch.h> 34 int main(
int argc,
char** argv)
36 Clock *clock = Clock::instance();
41 time = watch.clock_time();
42 cout <<
"Current clock time is " << time.str() << endl;
45 cout <<
"Starting watch at " << time.str() << endl;
48 cout <<
"Watch is running for " << watch.watch_time().str() << endl;
51 cout <<
"Watch is running for " << watch.watch_time().str() << endl;
55 cout <<
"Start pausing at "<< time.str() << endl;
58 cout <<
"Watch is running for " << watch.watch_time().str() << endl;
61 cout <<
"Watch is running for " << watch.watch_time().str() << endl;
65 cout <<
"Resuming at "<< time.str() << endl;
69 cout <<
"Stopping watch at "<< time.str() << endl;
71 cout <<
"Watch is running for " << watch.watch_time().str() << endl;
73 time = watch.clock_time();
74 cout <<
"Current clock time is " << time.str() << endl;
Fawkes library namespace.
This is supposed to be the central clock in Fawkes.
A class for handling time.