sus 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/clock.rb +6 -0
- data/lib/sus/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e158f43458d5d3c2bc5835ab0493b22d4c09c8f2c733cb8e42095ed5b7566a0
|
4
|
+
data.tar.gz: 4ef00aa6fe64b16271a8d219ee8f20bab23064ab5546e64885f040bf9cc5a180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ec5c608a1e0131702bb1c2a530b0811072a9e47df858f46635dc94fade1855cad48e6005514329de5994a2c30882cb97a8b62b73787fad9bd30ec596d24937
|
7
|
+
data.tar.gz: 1e7551d9b5007a6158bd0b690743b1ab0c448fe0ed507692f0ba14fa1697ba61b49af781ce1b70a24a2c839f72ddfcc5a7de7bd46158f723a97044c1c1a0e6f5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/sus/clock.rb
CHANGED
@@ -7,6 +7,10 @@ module Sus
|
|
7
7
|
class Clock
|
8
8
|
include Comparable
|
9
9
|
|
10
|
+
def self.start!
|
11
|
+
self.new.tap(&:start!)
|
12
|
+
end
|
13
|
+
|
10
14
|
def initialize(duration = 0.0)
|
11
15
|
@duration = duration
|
12
16
|
end
|
@@ -40,6 +44,8 @@ module Sus
|
|
40
44
|
@duration += Process.clock_gettime(Process::CLOCK_MONOTONIC) - @start_time
|
41
45
|
@start_time = nil
|
42
46
|
end
|
47
|
+
|
48
|
+
return @duration
|
43
49
|
end
|
44
50
|
end
|
45
51
|
end
|
data/lib/sus/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|