aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2017-09-23 09:25:26 +1000
committerSteve Bennett <steveb@workware.net.au>2017-10-16 07:00:20 +1000
commitc475d786beaccb75b37425a8f24b862bc05a60a9 (patch)
treeb1b216f9a6387cd3d816fbbcaeeccff4709dfdb7 /auto.def
parent6275b1b87034d4b42a3c639c0d4be36121ad3b1f (diff)
downloadjimtcl-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.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto.def b/auto.def
index 61382ef..4b454be 100644
--- a/auto.def
+++ b/auto.def
@@ -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]