I think I figured this out. If I execute Date.now() - Date.now() in Web IDE console the result is either -0.21362304687 or -0.18310546875.
Date.now() - Date.now()
-0.21362304687
-0.18310546875
Difference between those is 0.03051757812 i.e. 0.00003051757812 ms and 1/0.00003051757812 = 32768.00002684...
0.03051757812
0.00003051757812 ms
1/0.00003051757812 = 32768.00002684...
So resolution seems to be 1/32768 seconds.
@malaire started
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 I figured this out. If I execute
Date.now() - Date.now()
in Web IDE console the result is either-0.21362304687
or-0.18310546875
.Difference between those is
0.03051757812
i.e.0.00003051757812 ms
and1/0.00003051757812 = 32768.00002684...
So resolution seems to be 1/32768 seconds.