I want a method like (current [time in milliseconds v]) but with microseconds instead of milliseconds
One search away ![]()
What would be your use case?
my use case is roblox microprofiler but in Snap!
And how do microseconds fit in there?
you'll need to use javascript performance.now() to get more accurate time. many browsers still round that to the millisecond anyways though to prevent certain kinds of security vulnerabilities.
if you want to profile your code, your best option is the profiler in your browser's devtools (ctrl-shift-i). snap blocks themselves are quite slow and trying to build performance tooling with them will very likely mess with your measurements.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.