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

Commit 0e77501

Browse files
authored
Merge pull request #2237 from rainers/issue19046
fix Issue 19046 - OSX: bad value for core.stdc.time.CLOCKS_PER_SEC merged-on-behalf-of: Jacob Carlborg <jacob-carlborg@users.noreply.github.com>
2 parents 9a8edfb + ac1bf35 commit 0e77501

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)