pretty_stopwatch 0.1.2 → 0.1.3
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 +13 -6
- data/lib/pretty_stopwatch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6c38e209a9aed274b4b020c88f62f806d627b7f4f52b1bf6ac25c8d4ef90ca1
|
|
4
|
+
data.tar.gz: cbf674f15bd8ba525a3a22ed957f7de8eab06fe228c2dc749b9e56811cf97116
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eea6338238a1def7bb6421e0183c9f19d7f5f22eb2909b293e8bdcda3809c32bd5f7cd9b9fb9bbd68e8c999ddcef423a59c5abb284b051766de4b5dc4ee19c4
|
|
7
|
+
data.tar.gz: 1caa1fd00ec324547fe0074deb304ebc3240abe4b314299a76440f8efadc823bb495c145c2cdfbd114ce9e1a62472b2ba4e829a62146eece0d7f25bd2770a475
|
data/README.md
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
# PrettyStopwatch
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A simple Stopwatch with nanosecond precision and readable formatting.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Basic Usage:
|
|
6
|
+
|
|
7
|
+
stopwatch = Stopwatch::create_started
|
|
8
|
+
sleep(0.1)
|
|
9
|
+
stopwatch.stop # optional
|
|
10
|
+
puts "slept for #{stopwatch}" # to_s optional
|
|
11
|
+
# slept for 100.02 ms
|
|
6
12
|
|
|
7
|
-
## Installation
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Based on the Guava Stopwatch com.google.common.base.Stopwatch. Credit: The Guava Authors
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
10
17
|
|
|
11
18
|
Install the gem and add to the application's Gemfile by executing:
|
|
12
19
|
|
|
13
|
-
$ bundle add
|
|
20
|
+
$ bundle add pretty_stopwatch
|
|
14
21
|
|
|
15
22
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
16
23
|
|
|
17
|
-
$ gem install
|
|
24
|
+
$ gem install pretty_stopwatch
|
|
18
25
|
|
|
19
26
|
## Usage
|
|
20
27
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pretty_stopwatch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Mcfadyen
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.2'
|
|
27
|
-
description:
|
|
27
|
+
description: A simple Stopwatch with nanosecond precision and readable formatting.
|
|
28
28
|
email:
|
|
29
29
|
- ben.mcfadyen3@gmail.com
|
|
30
30
|
executables: []
|
|
@@ -65,5 +65,5 @@ requirements: []
|
|
|
65
65
|
rubygems_version: 3.5.11
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
|
-
summary:
|
|
68
|
+
summary: A simple Stopwatch with nanosecond precision and readable formatting.
|
|
69
69
|
test_files: []
|