Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Coffea | |
Old Version | Published before Godot 3 was released. |
What would be a good way to implement a timer for function testing, benchmarking code, performance testing … that kind of thing ?
For performance testing, you can use OS.get_ticks_msec()
, I wrote those micro-benchmarks using lots of iterations: https://github.com/godotengine/godot-tests/blob/master/benchmarks/zylann/gdscript_microtests.gd
Zylann | 2016-11-08 12:45
That will do it, thank you very much ^^
Coffea | 2016-11-10 17:39
I added my comment as answer, I should have done that before.
Zylann | 2016-11-10 17:47