Difference between revisions of "OpenIGTLink/Timestamp"

From NAMIC Wiki
Jump to: navigation, search
Line 1: Line 1:
[[OpenIGTLink | << OpenIGTLink]]
+
[[OpenIGTLink | << OpenIGTLink]]  [[OpenIGTLink/Protocol | << Protocol]]
  
  

Revision as of 19:24, 10 January 2008

Home < OpenIGTLink < Timestamp

<< OpenIGTLink << Protocol


Big Endian format: bits numbered in big-endian fashion from 0 starting at the left, or high-order, position.

Seconds and fraction of seconds: timestamps are represented as a 64-bit unsigned fixed-point number, in seconds relative to 00:00:00 January 1, 1970, UTC. The integer part is in the first 32 bits (Unix-style timestamp) and the fraction part in the last 32 bits. In the fraction part, the non-significant low order can be set to 0.

Wrap around: The first 32-bit field will overflow some time in 2106 (second 4,294,967,296)

Obtaining timestamp

Time synchronization

Two solutions:

  1. Install NTP on all devices
  2. Compute timestamp differences (local NTP can be used)

Resources