JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
jngl
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
7
namespace
jngl
{
8
10
double
getTime
();
11
14
[[deprecated(
"Use std::this_thread::sleep_for(std::chrono::milliseconds(...)) instead"
)]]
15
void
sleep
(
int
milliseconds);
16
17
}
// namespace jngl
jngl
JNGL's main namespace.
Definition
Achievement.hpp:10
jngl::getTime
double getTime()
Returns seconds that have passed since program start.
jngl::sleep
void sleep(int milliseconds)
Sleep current thread for milliseconds.