00001 #include "osl/real_time.h"
00002 #include <iostream>
00003
00004 int
00005 main ()
00006 {
00007 osl::RealTime realTime (10);
00008
00009 while (realTime.timeLeft ())
00010 {
00011 long tlis = realTime.getTimeLeftApprox ();
00012 std::cout << tlis << std::endl;
00013 sleep (1);
00014 }
00015
00016 return 0;
00017 }