Skip to content

Time structure for microseconds #90

Answered by bxparks
rvdbreemen asked this question in Q&A
Discussion options

You must be logged in to vote

In my opinion, I think it helps to distinguish 2 different concepts of a "clock":

  1. I'll call the first one "human clock" that provides access to the date, time, and timezone used by human beings. This is the purpose of AceTime.
  2. I'll call the second one a "ticking clock" that tracks the relative passage of time, often for measurement purposes. These are provided by functions like millis(), micros() and other timers.

Some languages and environments provide a good separation of these 2 concepts (e.g. C++, Java, to some extent Python). Some environments conflate the 2 concepts more than I would like (e.g. C, Unix, Golang).

In the microcontrollers world, the term "clock" is a bit overloaded, …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rvdbreemen
Comment options

Comment options

You must be logged in to vote
1 reply
@rvdbreemen
Comment options

Answer selected by rvdbreemen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants