timer.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
timer.cc
Go to the documentation of this file.
1 #include "osl/real_time.h"
2 #include <iostream>
3
4 int
5 main ()
6 {
7 osl::RealTime realTime (10);
8
9 while (realTime.timeLeft ())
10 {
11 long tlis = realTime.getTimeLeftApprox ();
12 std::cout << tlis << std::endl;
13 sleep (1);
14 }
15
16 return 0;
17 }