Gryphon timestamp example

What is the format for the timestamp in a data frame on the Gryphon?

The timestamp is in hex and is a 4-byte long unsigned integer in network byte order.

Example:

assume m is a message as received from the network,
and m.dataheader.timestamp is the 4-byte timestamp.

Then,


m.dataheader.timestamp[0] = most significant byte ((2 ^ 24) * val) * 10uS 
m.dataheader.timestamp[1] = 2nd most significant ((2 ^ 16) * val) * 10uS 
m.dataheader.timestamp[2] = 3rd most significant ((2 ^ 8) * val) * 10uS 
m.dataheader.timestamp[3] = least significant (val) * 10uS 

So if you had a timestamp of, for example:

0x23 0x5a 0x12 0x09 (4 bytes) 

This would represent the following timestamp:


time= ( 0x23*(2^24) + 0x5a*(2^16) + 0x12*(2^8) + 0x09 ) * 10uS 

time= ( 35*16777216 + 90*65536 + 18*256 + 9) * 10uS 

time= 593,105,417 * 10uS 

This document was obtained from:

Dearborn Group, Inc.
(248) 488-2080
dg@dgtech.com
http://www.dgtech.com

Copyright © 2003 Dearborn Group Inc.