summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaFunctions.h
blob: b17d7d497eb8b7c93ea2855a645c5719f17d8a3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <time.h>
// tolua_begin

inline unsigned int GetTime()
{
	// NB: For caveats, please see https://stackoverflow.com/a/14505248
	return static_cast<unsigned int>(std::chrono::seconds(time(0)).count());
}

// tolua_end