Commit d210a5a1 authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'fix-inline-doc' into 'master'

Fix Gitlab::Metrics::System#real_time and #monotonic_time doc

See merge request gitlab-org/gitlab-ce!15187
parents 3971f955 5799e00f
......@@ -46,14 +46,14 @@ module Gitlab
# Returns the current real time in a given precision.
#
# Returns the time as a Float.
# Returns the time as a Fixnum.
def self.real_time(precision = :millisecond)
Process.clock_gettime(Process::CLOCK_REALTIME, precision)
end
# Returns the current monotonic clock time in a given precision.
#
# Returns the time as a Float.
# Returns the time as a Fixnum.
def self.monotonic_time(precision = :millisecond)
Process.clock_gettime(Process::CLOCK_MONOTONIC, precision)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment