Maris Posted May 11, 2015 Share Posted May 11, 2015 Hello. I'm trying to find the mods or game places which cause huge lags on my server.I made "freeze" function so I can simulate a lag: function freeze(n) --Freeze for N seconds for i=1,100000000*n do local x = i*n end endBut how to detect elapsed time ingame? There is only one function which give information about real time -GetTimeReal(). But precision is too low for detecting lags 0.5 sec. Please provide a function wich allows to get the real time with good precision.For example, GetTickReal would be enough. Link to comment https://forums.kleientertainment.com/forums/topic/53843-profiling-mod/ Share on other sites More sharing options...
Maris Posted May 11, 2015 Author Share Posted May 11, 2015 Oh, problem just solved. I found useful function: os.clock()Sorry to trouble you. Link to comment https://forums.kleientertainment.com/forums/topic/53843-profiling-mod/#findComment-636715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.