Skip to content

Commit

Permalink
changed monotonic clock to realtime clock
Browse files Browse the repository at this point in the history
  • Loading branch information
hfstco committed Jul 1, 2024
1 parent 113d9bd commit fdd0d1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions picoquic/quicctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4079,6 +4079,11 @@ uint64_t picoquic_current_time()
/*
* Use CLOCK_MONOTONIC if exists (more accurate)
*/
/*
* !!!IMPORTANT!!!
* Use realtime clock for analysis instead of monotonic one. In production environment please revert it to comply
* with the draft.
*/
struct timespec currentTime;
(void)clock_gettime(CLOCK_MONOTONIC, &currentTime);
now = (currentTime.tv_sec * 1000000ull) + currentTime.tv_nsec / 1000ull;
Expand Down

0 comments on commit fdd0d1c

Please sign in to comment.