Skip to content

Commit

Permalink
Update Timestamp description wrt. resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch authored Sep 13, 2023
1 parent 9b62ef9 commit f8f437a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/manual/abstractions.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ This timestamp is made of 2 items:
This time is a 64-bit time with a similar structure than a NTP timestamp (but with a different epoch):
- The higher 32-bit part is the number of seconds since midnight, January 1, 1970 UTC
(implying a rollover in 2106).
- The lower 32-bit part is a fraction of second, but with the 8 last bits replaced by a counter.
- The lower 32-bit part is a fraction of second, but with the 4 last bits replaced by a counter.

This time gives a theoretical resolution of 2^-32 seconds (60 nanoseconds), and
guarantees that the same time cannot be generated twice and that the _happened-before_ relationship is preserved.
This time gives a theoretical resolution of (0xF * 10^9 / 2^32) = 3.5 nanoseconds.
It's counter part guarantees that the same time cannot be generated twice and that the _happened-before_ relationship is preserved.

- The **UUID** of the Zenoh router that generated the time.

Expand Down

0 comments on commit f8f437a

Please sign in to comment.