Skip to content

Commit

Permalink
tv_nsec is long or int depending on the posix implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Salomon BRYS committed Nov 19, 2020
1 parent 7d826db commit 758afc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public actual fun now(): Instant {
memScoped {
val spec = alloc<timespec>()
clock_gettime(CLOCK_REALTIME, spec.ptr)
return Instant(spec.tv_sec, spec.tv_nsec)
return Instant(spec.tv_sec, spec.tv_nsec.convert())
}
}

Expand Down

0 comments on commit 758afc4

Please sign in to comment.