We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4925eb8 commit bb68548Copy full SHA for bb68548
profile/benchmarking/results.rb
@@ -25,6 +25,11 @@ class Results
25
26
attr_reader :raw_results
27
28
+ # String constant for unit of time elapsed.
29
+ #
30
+ # @since 7.0.0
31
+ MILLISECONDS = 'milliseconds'.freeze
32
+
33
# Create a Results object.
34
#
35
# @example Create a results object.
@@ -136,11 +141,12 @@ def dataset_details
136
141
end
137
142
138
143
def duration
139
- @options[:duration]
144
+ @options[:duration] * 1000
140
145
146
147
def statistics_doc
- { mean: mean,
148
+ { unit: MILLISECONDS,
149
+ mean: mean,
150
median: median,
151
max: max,
152
min: min,
0 commit comments