The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
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
15namespace Gaudi {
16
17 void Sleep( int sec ) { std::this_thread::sleep_for( std::chrono::seconds( sec ) ); }
18
19 void NanoSleep( long long nsec ) { std::this_thread::sleep_for( std::chrono::nanoseconds( nsec ) ); }
20} // namespace Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1
GAUDI_API void Sleep(int sec)
Simple sleep function.
Definition Sleep.cpp:17
GAUDI_API void NanoSleep(long long nsec)
Small variation on the sleep function for nanoseconds sleep.
Definition Sleep.cpp:19