Skip to content

Commit

Permalink
Make realTime include nanoseconds
Browse files Browse the repository at this point in the history
Closes #699.
  • Loading branch information
dhpiggott committed Jan 22, 2025
1 parent 1236aad commit c125966
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private abstract class ZioTemporal[R, E, E1] extends ZioConcurrent[R, E, E1] wit
override def realTime: F[FiniteDuration] = {
implicit def trace: Trace = CoreTracer.newTrace

currentTime(MILLISECONDS).map(FiniteDuration(_, MILLISECONDS))
currentTime(NANOSECONDS).map(FiniteDuration(_, NANOSECONDS))
}
}

Expand Down

0 comments on commit c125966

Please sign in to comment.