Elements
5.8
A C++ base framework for the Euclid Software.
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
ElementsKernel
src
Lib
Sleep.cpp
Go to the documentation of this file.
1
19
#include "
ElementsKernel/Sleep.h
"
20
21
#include <thread>
// for this_thread
22
#include <chrono>
// for chrono
23
#include <cstdint>
// for int64_t
24
25
using
std::this_thread::sleep_for
;
26
27
namespace
Elements {
28
29
33
void
normalSleep
(
int
sec) {
34
sleep_for(
std::chrono::seconds
(sec));
35
}
36
40
void
nanoSleep
(
std::int64_t
nsec) {
41
sleep_for(
std::chrono::nanoseconds
(nsec));
42
}
43
44
}
// namespace Elements
std::chrono::seconds
Elements::nanoSleep
ELEMENTS_API void nanoSleep(std::int64_t nsec)
Small variation on the sleep function for nanoseconds sleep.
Definition:
Sleep.cpp:40
Elements::normalSleep
ELEMENTS_API void normalSleep(int sec)
Small variation on the sleep function for seconds sleep.
Definition:
Sleep.cpp:33
std::this_thread::sleep_for
T sleep_for(T...args)
std::int64_t
Sleep.h
Generated by
1.8.5