mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-07 07:53:09 +00:00
Fix for $(0).
This commit is contained in:
parent
3d87707b07
commit
a2b85a8126
@ -400,8 +400,7 @@ func `$`*(a: Duration): string {.inline.} =
|
||||
if v >= Microsecond.value:
|
||||
result &= $(v div Microsecond.value) & "us"
|
||||
v = v mod Microsecond.value
|
||||
if v >= Nanosecond.value:
|
||||
result &= $(v div Nanosecond.value) & "ns"
|
||||
result &= $(v div Nanosecond.value) & "ns"
|
||||
|
||||
func `$`*(a: Moment): string {.inline.} =
|
||||
## Returns string representation of Moment ``a`` as nanoseconds value.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user