Skip to content

Commit

Permalink
Use logged timestamps during replay if deterministic timestamps are d…
Browse files Browse the repository at this point in the history
…isabled

The old behavior reverted to reading the normal FPGA time, which will be very different during accelerated replay. Instead, use the logged time as a closer approximation.
  • Loading branch information
jwbonner committed Oct 26, 2023
1 parent ff2db87 commit d007a27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static boolean getReceiverQueueFault() {
* entry (microseconds).
*/
public static long getTimestamp() {
if (!running || entry == null || !deterministicTimestamps) {
if (!running || entry == null || (!deterministicTimestamps && !hasReplaySource())) {
return getRealTimestamp();
} else {
return entry.getTimestamp();
Expand Down

0 comments on commit d007a27

Please sign in to comment.