I think if you look at new Date you actually get an object. If you then do maths with that object, Date.valueOf gets called, which returns a time in milliseconds since 1970...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think if you look at
new Date
you actually get an object. If you then do maths with that object, Date.valueOf gets called, which returns a time in milliseconds since 1970...So yes, the time returned by
SWstop
will be milliseconds.Hope that helps :)