JNGL
time.hpp
Go to the documentation of this file.
1 // Copyright 2014-2020 Jan Niklas Hasse <[email protected]>
2 // For conditions of distribution and use, see copyright notice in LICENSE.txt
5 #pragma once
6 
7 namespace jngl {
8 
10 double getTime();
11 
14 [[deprecated("Use std::this_thread::sleep_for instead")]]
15 void sleep(int milliseconds);
16 
17 } // namespace jngl
jngl
JNGL's main namespace.
Definition: App.hpp:9
jngl::getTime
double getTime()
Returns seconds that have passed since program start.
jngl::sleep
void sleep(int milliseconds)
Sleep current thread for milliseconds.