You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • So resolution seems to be 1/32768 seconds.

    Yes, that's right! Good detective work :)

    Is there a more efficient way to get current time into same variable instance?

    It's really not that bad... I think allocating Date uses 3 variables, and because of the way Espruino works that's pretty quick and not likely to cause any fragmentation.

    You can do D.setTime(Date.now()) but I think it's of such a marginal improvement it's not worth it.

About

Avatar for Gordon @Gordon started