diff options
author | Steve Bennett <steveb@workware.net.au> | 2017-09-23 09:25:26 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2017-10-16 07:00:20 +1000 |
commit | c475d786beaccb75b37425a8f24b862bc05a60a9 (patch) | |
tree | b1b216f9a6387cd3d816fbbcaeeccff4709dfdb7 /auto.def | |
parent | 6275b1b87034d4b42a3c639c0d4be36121ad3b1f (diff) | |
download | jimtcl-c475d786beaccb75b37425a8f24b862bc05a60a9.zip jimtcl-c475d786beaccb75b37425a8f24b862bc05a60a9.tar.gz jimtcl-c475d786beaccb75b37425a8f24b862bc05a60a9.tar.bz2 |
eventloop: support sub-millisecond timer resolution
Timeouts may now be specified in fractions of milliseconds. e.g. after 0.5
This can be useful on faster systems where 1ms resolution is too coarse.
Also, use clock_gettime(CLOCK_MONOTONIC_RAW) for timers, if available.
This clock is insensitive to system clock changes and ntp adjustments.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -114,7 +114,7 @@ cc-check-functions geteuid mkstemp realpath isatty cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist isascii cc-check-functions syslog opendir readlink sleep usleep pipe getaddrinfo utimes cc-check-functions shutdown socketpair isinf isnan link symlink fsync dup umask -cc-check-functions localtime gmtime strptime timegm +cc-check-functions localtime gmtime strptime timegm clock_gettime if {[cc-check-function-in-lib backtrace execinfo]} { define-append LDLIBS [get-define lib_backtrace] |