gctime 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b594dd96d438936c08955b149f5a0a6d9abb4a044cbbaddd8ac1befe80bece4
4
- data.tar.gz: 806439090aac36803dd00a6823aa87ab4896d8300e546bee00a225a256af8f84
3
+ metadata.gz: 5f73c45db92140d6fbff53be4ec30d4e7765b99c7bfdc4f8590fe16323e9ccb2
4
+ data.tar.gz: ec02e2614e8209c432075a42ea5fa33964cd7a00f95b0ca0b96e025381c82b7d
5
5
  SHA512:
6
- metadata.gz: fb9114576a8739d06b8eac360a44419db09555a9fa2f7f59c2b783f54390893b1088a4f4aaa126501a5dfebf230e00f8cc16860294956ffbd69b3c260a83bc09
7
- data.tar.gz: 2bc82c46d079c05098fe9b51c0bf19a834401259d4dece2bab58c265a32cade1853bcac4c66d731cbdf76bfb6eb2c25826b6d711ce1a313930e25646344e9abd
6
+ metadata.gz: 3f29a3644e57b0c46d395275957ee3a427f0f46b183b0eb9a398fe8277ee9d1318b4a1c7fe1c3be1820d0fc232f6ad85be7a6247e829902058aae9fe748069fd
7
+ data.tar.gz: 1bb2601b5bc67f6b276e4a7602b97cbbbb5a60bade23a4b5abaad399fa080a5badd34f0ee10ed0f01d163d221135e64f8ca5d169a8d463dfbcc5b5a03970c5d9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gctime (1.0.0)
4
+ gctime (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -26,9 +26,9 @@ Or install it yourself as:
26
26
  >> 4.times { GC.start }
27
27
  => 4
28
28
  >> GC.stat(:time)
29
- => 123 # milliseconds (returns a Float on JRuby and TruffleRuby)
29
+ => 123 # milliseconds
30
30
  >> GC.stat[:time]
31
- => 123 # milliseconds (returns a Float on JRuby and TruffleRuby)
31
+ => 123 # milliseconds
32
32
  >> GC.total_time
33
33
  => 123909999 # nanoseconds
34
34
  >> GC.measure_total_time = false # Disable instrumentation
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GCTime
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/gctime.rb CHANGED
@@ -16,7 +16,7 @@ module GCTime
16
16
  end unless GC.respond_to?(:measure_total_time=)
17
17
 
18
18
  def total_time
19
- (stat(:time) * 1_000_000.0).to_i # nanoseconds integer
19
+ stat(:time) * 1_000_000 # nanoseconds integer
20
20
  end unless GC.respond_to?(:total_time)
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gctime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier