JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
time.hpp
Go to the documentation of this file.
1// Copyright 2014-2021 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
5#pragma once
6
7namespace jngl {
8
10double getTime();
11
14[[deprecated("Use std::this_thread::sleep_for(std::chrono::milliseconds(...)) instead")]]
15void sleep(int milliseconds);
16
17} // namespace jngl
JNGL's main namespace.
double getTime()
Returns seconds that have passed since program start.
void sleep(int milliseconds)
Sleep current thread for milliseconds.