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

Commit 4b5be6e

Browse files
thewilsonatorPetarKirov
authored andcommitted
Fix issue 19177: add clock() and CLOCKS_PER_SEC for Solaris
1 parent 5012594 commit 4b5be6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/stdc/time.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ else version( DragonFlyBSD )
117117
enum clock_t CLOCKS_PER_SEC = 128;
118118
clock_t clock();
119119
}
120+
else version (Solaris)
121+
{
122+
enum clock_t CLOCKS_PER_SEC = 1_000_000;
123+
clock_t clock();
124+
}
120125
else version (CRuntime_Glibc)
121126
{
122127
enum clock_t CLOCKS_PER_SEC = 1_000_000;

0 commit comments

Comments
 (0)