I added a new function to sched module: formatDuration(millis)
The sched module contains many functions, maybe we should split it into smaller modules? Some of the functions are more time-related than scheduler-related.
Functions like encode/decodeTime, formatTime, formatDuration could be extracted into a new "time_utils" module - what do you think?
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.
Eventually I would use these icons:
@Gordon
I added a new function to sched module: formatDuration(millis)
The sched module contains many functions, maybe we should split it into smaller modules? Some of the functions are more time-related than scheduler-related.
Functions like encode/decodeTime, formatTime, formatDuration could be extracted into a new "time_utils" module - what do you think?