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

This commit is contained in:
Rémy Coutable 2017-11-03 17:12:05 +00:00
parent 4fb3560fa9
commit 5799e00f8f
1 changed files with 2 additions and 2 deletions

View File

@ -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