Merge pull request #8682 from Vercix/master

Update OS to Time on pages containing OS.get_ticks_usec()
This commit is contained in:
Matthew
2023-12-26 21:48:33 -05:00
committed by Max Hilbrunner
parent fb31598828
commit 90a56987e0
2 changed files with 4 additions and 4 deletions

View File

@@ -94,12 +94,12 @@ the following:
::
var time_start = OS.get_ticks_usec()
var time_start = Time.get_ticks_usec()
# Your function you want to time
update_enemies()
var time_end = OS.get_ticks_usec()
var time_end = Time.get_ticks_usec()
print("update_enemies() took %d microseconds" % time_end - time_start)
When manually timing functions, it is usually a good idea to run the function