summaryrefslogtreecommitdiff
path: root/engine/src/Clock.cpp
blob: 5261603e2038973880078c0761bd78727bb9fa33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <kurator/engine/Clock.h>

#include <raylib.h>


namespace kurator
{
namespace engine
{


float
Clock::dt() const
{
	return GetFrameTime() * time_factor;
}


float
Clock::ui() const
{
	return GetFrameTime();
}


Clock::operator float() const
{
	return dt();
}


}  // namespace engine
}  // namespace kurator