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

            
                   
                 
                 

              
                             
 
                                                                           
                                                                                

 
            
#pragma once

#include "Logger.h"
#include <time.h>
#include <chrono>
// 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