22 cout <<
"*** SimplePOSIXTimeKeeperSvc_test starts ***" << endl;
23 ISvcLocator* pSvcLoc( 0 );
24 if ( !initGaudi(
"SimplePOSIXTimeKeeperSvc_test.txt", pSvcLoc ) )
26 cerr <<
"This test can not be run" << endl;
32 const bool CREATEIF(
true );
33 ITimeKeeper* pITK( 0 );
34 assert( ( pSvcLoc->service(
"SimplePOSIXTimeKeeperSvc", pITK, CREATEIF ) ).isSuccess() );
38 SimplePOSIXTimeKeeperSvc& tk(
dynamic_cast<SimplePOSIXTimeKeeperSvc&
>( *pITK ) );
39 assert( tk.timeX() + tk.timeL() == tk.allocTime() );
41 while ( pITK->nextIter() )
43 for (
int i = 0; i < 20000000; ++i ) atan( i );
46 assert( tk.timeX() + tk.timeL() == tk.allocTime() );
51 cout <<
"*** SimplePOSIXTimeKeeperSvc_test OK ***" << endl;