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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5ee33a0bdb9558b0090beebc370e9739012c26a
4
- data.tar.gz: 73c189c8c4753222f46d2edf6ed1345fd6266d60
3
+ metadata.gz: ec7f1cce6302be781f0cf316c547b91b5978e339
4
+ data.tar.gz: 2b773663f78d6ad9100c0d9dcaf28cdcb7ac71b3
5
5
  SHA512:
6
- metadata.gz: e5e9163ef6bb93f8c7fbd1b0f3b01e269aea64ede9a12b5081acd293afdc781c6b677592491ccc71a53675535693581b37b3c3d32a9cb77670f3d02f3d49b161
7
- data.tar.gz: 01e562ae2fbc6c1b91ffc879686b702e2f6f57add16fb9584493226bb7a6e9c34e19a1349c38a2898f942b83c366db981c8cd883f14e3a7745f14762218356c4
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.23999999999999994
55
+ => 0.48
53
56
 
54
57
  >> result.utime
55
- => 0.0
58
+ => 0.39999999999999997
56
59
 
57
60
  >> result.stime
58
- => 0.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
@@ -33,8 +33,6 @@ module Ringc
33
33
 
34
34
  def set_times
35
35
  @result.set_times(
36
- @finish_times.utime - @start_times.utime,
37
- @finish_times.stime - @start_times.stime,
38
36
  @finish_times.cutime - @start_times.cutime,
39
37
  @finish_times.cstime - @start_times.cstime
40
38
  )
@@ -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, cutime, cstime)
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 + cutime + cstime
38
+ utime + stime
44
39
  end
45
40
  memoize :total_time
46
41
  alias_method :total, :total_time
@@ -1,3 +1,3 @@
1
1
  module Ringc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ringc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nownabe