The Gaudi Framework  v32r2 (46d42edc)
Sleep.cpp
Go to the documentation of this file.
1 #include "GaudiKernel/Sleep.h"
2 #include <chrono>
3 #include <thread>
4 
5 namespace Gaudi {
6 
7  void Sleep( int sec ) { std::this_thread::sleep_for( std::chrono::seconds( sec ) ); }
8 
9  void NanoSleep( long long nsec ) { std::this_thread::sleep_for( std::chrono::nanoseconds( nsec ) ); }
10 } // namespace Gaudi
T sleep_for(T... args)
GAUDI_API void NanoSleep(long long nsec)
Small variation on the sleep function for nanoseconds sleep.
Definition: Sleep.cpp:9
GAUDI_API void Sleep(int sec)
Simple sleep function.
Definition: Sleep.cpp:7
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1