added yl_speak_up.get_time_in_seconds

This commit is contained in:
Sokomine 2021-08-05 18:08:42 +02:00
parent 0629d6ba2c
commit aa38ea2dbb

View File

@ -518,3 +518,9 @@ yl_speak_up.get_list_of_debugged_variables = function(pname)
end
return res
end
-- helper function; time is sometimes needed
yl_speak_up.get_time_in_seconds = function()
return math.floor(minetest.get_us_time()/1000000)
end