Skip to content

Commit 8c7b629

Browse files
committed
have the benchmarks import Darwin on macOS instead of Glibc
1 parent be7d420 commit 8c7b629

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/NoiseTests/main.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import Noise
22
import PNG
33

4+
// TODO: migrate the stdlib Clock APIs
5+
#if os(Linux)
46
import func Glibc.clock
7+
#else
8+
import func Darwin.clock
9+
#endif
510

611
banners(width: 700, ratio: 5)
712

0 commit comments

Comments
 (0)