2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
// tolua_begin
|
|
|
|
|
2014-05-01 17:38:35 -04:00
|
|
|
inline unsigned int GetTime()
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2015-12-19 09:30:32 -05:00
|
|
|
// NB: For caveats, please see https://stackoverflow.com/a/14505248
|
2015-08-04 18:24:59 -04:00
|
|
|
return static_cast<unsigned int>(std::chrono::seconds(time(0)).count());
|
2012-06-14 09:06:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// tolua_end
|