Browse Source

One should avoid gettimeofday for purposes of timestamping,

cause it is possible to mis calculate time between timestamps
if something/user changes system date. The monotonic time is
much more safer to use for timestamp purposes.
pull/543/head
Lauri Jakku 5 years ago
parent
commit
4c5126e59f
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      linux/JackLinuxTime.c

+ 6
- 1
linux/JackLinuxTime.c View File

@@ -122,7 +122,12 @@ static jack_time_t jack_get_microseconds_from_hpet (void)

#endif /* HPET_SUPPORT */

#define HAVE_CLOCK_GETTIME 1
/* One should avoid gettimeofday for purposes of timestamping,
* cause it is possible to mis calculate time between timestamps
* if something/user changes system date.
* -- lja
*/
/* #define HAVE_CLOCK_GETTIME 1 */

#ifndef HAVE_CLOCK_GETTIME



Loading…
Cancel
Save