Skip to content

Commit 7463fa9

Browse files
authored
Merge pull request #127 from jkeuhlen/getMonoTonicTimeUnits
getMonotonicTime should return the number of seconds rather than nanoseconds on osx
2 parents ecd4cf8 + 6c09240 commit 7463fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unliftio/cbits/time-osx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ void unliftio_inittime(void)
99

1010
double unliftio_gettime(void)
1111
{
12-
return clock_gettime_nsec_np(CLOCK_UPTIME_RAW);
12+
return clock_gettime_nsec_np(CLOCK_UPTIME_RAW) / 1e9;
1313
}

0 commit comments

Comments
 (0)