ringc 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -9
- data/lib/ringc/executors/base.rb +0 -2
- data/lib/ringc/result.rb +2 -7
- data/lib/ringc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec7f1cce6302be781f0cf316c547b91b5978e339
|
|
4
|
+
data.tar.gz: 2b773663f78d6ad9100c0d9dcaf28cdcb7ac71b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bf9e42227a58b216967d6b270700e09002abead065e5a47f6ca61ff6cc25b83b95f1c8777056ee8cfb27bb5fa1798da47807b626ccf3fc876f37e3d05c973cf
|
|
7
|
+
data.tar.gz: bf870ce34cc3546b857f0ad3040fcff10e79dd2a633d264c830a0aa99b42913774951178a4da229026b306df2611ca1331f44c55b2392f7b2410c8db9b8a223e
|
data/README.md
CHANGED
|
@@ -48,20 +48,17 @@ spec
|
|
|
48
48
|
|
|
49
49
|
=> nil
|
|
50
50
|
|
|
51
|
+
>> result.real
|
|
52
|
+
=> 0.53631
|
|
53
|
+
|
|
51
54
|
>> result.total
|
|
52
|
-
=> 0.
|
|
55
|
+
=> 0.48
|
|
53
56
|
|
|
54
57
|
>> result.utime
|
|
55
|
-
=> 0.
|
|
58
|
+
=> 0.39999999999999997
|
|
56
59
|
|
|
57
60
|
>> result.stime
|
|
58
|
-
=> 0.
|
|
59
|
-
|
|
60
|
-
>> result.cutime
|
|
61
|
-
=> 0.19999999999999996
|
|
62
|
-
|
|
63
|
-
>> result.cstime
|
|
64
|
-
=> 0.03999999999999998
|
|
61
|
+
=> 0.08'``
|
|
65
62
|
```
|
|
66
63
|
|
|
67
64
|
## Contributing
|
data/lib/ringc/executors/base.rb
CHANGED
data/lib/ringc/result.rb
CHANGED
|
@@ -7,7 +7,6 @@ module Ringc
|
|
|
7
7
|
attr_accessor :start_time, :finish_time
|
|
8
8
|
attr_reader :status, :stdout, :stderr
|
|
9
9
|
attr_reader :user_time, :system_time
|
|
10
|
-
attr_reader :children_user_time, :children_system_time
|
|
11
10
|
|
|
12
11
|
def initialize
|
|
13
12
|
end
|
|
@@ -24,23 +23,19 @@ module Ringc
|
|
|
24
23
|
@stderr = stderr
|
|
25
24
|
end
|
|
26
25
|
|
|
27
|
-
def set_times(utime, stime
|
|
26
|
+
def set_times(utime, stime)
|
|
28
27
|
@user_time = utime
|
|
29
28
|
@system_time = stime
|
|
30
|
-
@children_user_time = cutime
|
|
31
|
-
@children_system_time = cstime
|
|
32
29
|
end
|
|
33
30
|
alias_method :utime, :user_time
|
|
34
31
|
alias_method :stime, :system_time
|
|
35
|
-
alias_method :cutime, :children_user_time
|
|
36
|
-
alias_method :cstime, :children_system_time
|
|
37
32
|
|
|
38
33
|
def success?
|
|
39
34
|
status == 0
|
|
40
35
|
end
|
|
41
36
|
|
|
42
37
|
def total_time
|
|
43
|
-
utime + stime
|
|
38
|
+
utime + stime
|
|
44
39
|
end
|
|
45
40
|
memoize :total_time
|
|
46
41
|
alias_method :total, :total_time
|
data/lib/ringc/version.rb
CHANGED