I need a function that returns the local time in milliseconds on the CPP target.
I tried Haxe's Date
class, but Date.now()
gives me the time in seconds.
Sys.time() * 1000.0
- http://api.haxe.org/Sys.html#time
Gives the most precise timestamp value (in seconds)
To be clear, I tried this and got millisecond resolution on the cpp target. Sys
is available on cpp, cs, java, macro, neko, php and python.
You could try Date.now().getTime()
, however:
Returns the timestamp of the date. It might only have a per-second precision depending on the platforms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With