abs package:streamly-core

Generates an Abs Path type from an interpolated string literal. Unimplemented
A type representing absolute paths.
absTimes returns a stream of absolute timestamps using a clock of 10 ms granularity.
>>> f = Fold.drainMapM print

>>> Stream.fold f $ Stream.delayPre 1 $ Stream.take 3 $ Stream.absTimes
AbsTime (TimeSpec {sec = ..., nsec = ...})
AbsTime (TimeSpec {sec = ..., nsec = ...})
AbsTime (TimeSpec {sec = ..., nsec = ...})
Note: This API is not safe on 32-bit machines. Pre-release
absTimesWith g returns a stream of absolute timestamps using a clock of granularity g specified in seconds. A low granularity clock is more expensive in terms of CPU usage. Any granularity lower than 1 ms is treated as 1 ms.
>>> f = Fold.drainMapM print

>>> Stream.fold f $ Stream.delayPre 1 $ Stream.take 3 $ Stream.absTimesWith 0.01
AbsTime (TimeSpec {sec = ..., nsec = ...})
AbsTime (TimeSpec {sec = ..., nsec = ...})
AbsTime (TimeSpec {sec = ..., nsec = ...})
Note: This API is not safe on 32-bit machines. Pre-release
Generates an Abs (Dir Path) type from an interpolated string literal. Unimplemented
Generates an Abs (File Path) type from an interpolated string literal. Unimplemented
Absolute times are relative to a predefined epoch in time. AbsTime represents times using TimeSpec which can represent times up to ~292 billion years at a nanosecond resolution.
Difference between two absolute points of time.
Convert absolute time to a TimeUnit.
Convert a TimeUnit to an absolute time.
Generates an Abs Path type. Unimplemented
Generates an Abs (Dir Path) type. Unimplemented
Generates an Abs (File Path) type. Unimplemented