Author Topic: How to measure elapsed time  (Read 507 times)

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: How to measure elapsed time
« on: August 28, 2016, 10:26:47 pm »
This is a difficult question. mc-OS keeps the time in cycles (62.5 nanoSec) and from there it is calculated in microSec, milliSec and Seconds. The issue is that we don't support the Long datatype yet. Even in millisecond the timer overflows every 24 days. (In microSeconds it is only 35 Minutes.)

There are a number of options that can solve this.
  • Return only the low 31 bits and let the developer compare them
  • Build a quick and dirty Long type
  • Wait until we have the Long type in the product

I understand the importance of the functionality so I will discuss it with the team.

-John-