diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-03-04 08:50:28 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-04 08:50:28 +0100 |
commit | f9231eb56901e7b72b41d26eebb390d048b4b296 (patch) | |
tree | 40baf3559f56831933b54bbb55b4c2766b0b9c95 /lib/pure | |
parent | 2647653589bfb81c0c12a00aed79012201196317 (diff) | |
download | Nim-f9231eb56901e7b72b41d26eebb390d048b4b296.tar.gz |
make 'nim doc times.nim' work on old versions of OSX again
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/times.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim index c910ce009..1bb23a311 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -2525,7 +2525,7 @@ when not defined(JS): fib.add(fib[^1] + fib[^2]) echo "CPU time [s] ", cpuTime() - t0 echo "Fib is [s] ", fib - when defined(posix): + when defined(posix) and not defined(osx): # 'clocksPerSec' is a compile-time constant, possibly a # rather awful one, so use clock_gettime instead var ts: Timespec |