mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use Time::Span.zero instead of constructor with 0 nanoseconds
This commit is contained in:
parent
caeab6c338
commit
fd547c5814
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ module Spectator
|
|||
end
|
||||
|
||||
def initialize(@example)
|
||||
super(@example, Time::Span.new(nanoseconds: 0))
|
||||
super(@example, Time::Span.zero)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,7 +47,7 @@ module Spectator
|
|||
protected abstract def run_instance
|
||||
|
||||
private class ResultCapture
|
||||
property elapsed = Time::Span.new(nanoseconds: 0)
|
||||
property elapsed = Time::Span.zero
|
||||
property error : Exception?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue