summaryrefslogblamecommitdiffstats
path: root/src/Bindings/LuaFunctions.h
blob: d323223845fbe22a9356d4ac297d56e4a8a7f100 (plain) (tree)
1
2
3
4
5
6
7
8
9

            


                 
                             
 
                                                                           
                                                                                      

 
            
#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(nullptr)).count());
}

// tolua_end