Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ac1bf35

Browse files
committed
fix Issue 19046 - OSX: bad value for core.stdc.time.CLOCKS_PER_SEC
seems to have been switched from 100 to 1_000_000 with OSX 10.4/10.5
1 parent 9a8edfb commit ac1bf35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/stdc/time.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ version( Windows )
8686
}
8787
else version( OSX )
8888
{
89-
enum clock_t CLOCKS_PER_SEC = 100;
89+
enum clock_t CLOCKS_PER_SEC = 1_000_000; // was 100 until OSX 10.4/10.5
9090
version (X86)
9191
extern (C) pragma(mangle, "clock$UNIX2003") clock_t clock();
9292
else

0 commit comments

Comments
 (0)