提交 d210a5a1 编写于 作者: Y 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
...@@ -46,14 +46,14 @@ module Gitlab ...@@ -46,14 +46,14 @@ module Gitlab
# Returns the current real time in a given precision. # 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) def self.real_time(precision = :millisecond)
Process.clock_gettime(Process::CLOCK_REALTIME, precision) Process.clock_gettime(Process::CLOCK_REALTIME, precision)
end end
# Returns the current monotonic clock time in a given precision. # 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) def self.monotonic_time(precision = :millisecond)
Process.clock_gettime(Process::CLOCK_MONOTONIC, precision) Process.clock_gettime(Process::CLOCK_MONOTONIC, precision)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册