Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@04alband
Copy link

This mode functions the same as TIMESTAMPMODE_SINGLE_SYNCHRONIZATION except the start time is set to zero. Thus the timestamp appears as "1970-01-01..." in Wireshark for example.

This is useful if an application wishes to synchronise packets with an external time source and is able to convert from QPC ticks to that time source. In the regular mode TIMESTAMPMODE_SINGLE_SYNCHRONIZATION, the driver start time must first be subtracted, which can only be approximated, substantially reducing accuracy. With this modification, high accuracy can be maintained.

I've named the new mode TIMESTAMPMODE_SINGLE_SYNCHRONIZATION_RELATIVE since the returned timestamps are relative to system boot time, but there may be better names. Similarly, it may be better to pass the timestamp mode into the call to TIME_SYNCHRONIZE and set the timeval to 0 there.

…s are based of the performance counter but do not have a system start time offset applied. Thus, applications can directly convert from QPC (after accounting for frequency) to another time format or source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant