Jump to content

Recommended Posts

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	end

​But 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

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.

×
  • Create New...