The Gaudi Framework  master (37c0b60a)
Sleep.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #include <GaudiKernel/Sleep.h>
12 #include <chrono>
13 #include <thread>
14 
15 namespace Gaudi {
16 
18 
19  void NanoSleep( long long nsec ) { std::this_thread::sleep_for( std::chrono::nanoseconds( nsec ) ); }
20 } // namespace Gaudi
std::this_thread::sleep_for
T sleep_for(T... args)
std::chrono::seconds
Gaudi::NanoSleep
GAUDI_API void NanoSleep(long long nsec)
Small variation on the sleep function for nanoseconds sleep.
Definition: Sleep.cpp:19
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Sleep.h
Gaudi::Sleep
GAUDI_API void Sleep(int sec)
Simple sleep function.
Definition: Sleep.cpp:17