barefootnetworks / Open-Tofino

Other
314 stars 66 forks source link

deq_timedelta #8

Closed Mandorath closed 3 years ago

Mandorath commented 3 years ago

Hi,

Considering that enq_tstamp/global_timestamp is in ns I would assume the the deq_timedelta also in ns and not us, is this correct? I can recall something about reading (all) the timestamps being in ns but I can't seem to find it anymore, so I want to be sure :). I checked the p4include/tofino.p4 file and and the pdf but I could not find it stated there. So it would range from 1 ns to approximately 262 us.

vgurevich commented 3 years ago

Yes, all Tofino timestamps are in ns.