| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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){
8 std::this_thread::sleep_for(std::chrono::seconds(sec));
9 }
10
11 void NanoSleep(long long nsec){
12 std::this_thread::sleep_for(std::chrono::nanoseconds(nsec));
13 }
14
15 }
std::chrono::seconds
Sleep.h
std::this_thread::sleep_for
T sleep_for(T...args)
Gaudi::NanoSleep
GAUDI_API void NanoSleep(long long nsec)
Small variation on the sleep function for nanoseconds sleep.
Definition: Sleep.cpp:11
Gaudi::Sleep
GAUDI_API void Sleep(int sec)
Simple sleep function.
Definition: Sleep.cpp:7
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1