There is an strange behavior with the getTime() function, if I execute console.log(getTime()-getTime()), always get -0.00004019642 ¿Why?
Example:
>console.log(getTime()-getTime())
-0.00004019642
Regards,
Pinnchus
Search Options
Types to Display
Espruino
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´m trying to know how much time expend in getTime() and caught my attention the result, is negative ¿?.