[In-game scripting] Allow the use of StopWatch class

TheVindicar shared this feedback 5 years ago
Submitted

Currently the only profiling tool we have is Runtime.LastRunTimeMs, which accounts not only for the entire script run, but also for unrelated costs like Just-In-Time compilation of the code.

Is there a particular reason why System.Diagnostics.StopWatch class is prohibited?

Replies (1)

photo
2

Hey, I just found this.. actually have a concrete suggestion out there that does not require opening up the entire Stopwatch, but would still allow scripts to measure internal time accurately.

https://support.keenswh.com/spaceengineers/pc/topic/suggestion-add-runtime-getcurrenttimestamp-method

Leave a Comment
 
Attach a file