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
|
end
|
||||||
|
|
||||||
def initialize(@example)
|
def initialize(@example)
|
||||||
super(@example, Time::Span.new(nanoseconds: 0))
|
super(@example, Time::Span.zero)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,7 +47,7 @@ module Spectator
|
||||||
protected abstract def run_instance
|
protected abstract def run_instance
|
||||||
|
|
||||||
private class ResultCapture
|
private class ResultCapture
|
||||||
property elapsed = Time::Span.new(nanoseconds: 0)
|
property elapsed = Time::Span.zero
|
||||||
property error : Exception?
|
property error : Exception?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue