The Arduino had the very useful "millis()" timer but the Espruino has none?
I need an easy way to check a block of JS code with a start/stop timer in milliseconds.
getTime() returns current time since system startup in seconds as a floating point number. That should do what you want.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem