module Datadog::Utils::Time
Common database-related utility functions.
Constants
- PROCESS_TIME_SUPPORTED
Public Instance Methods
get_time()
click to toggle source
# File lib/ddtrace/utils/time.rb, line 9 def get_time PROCESS_TIME_SUPPORTED ? Process.clock_gettime(Process::CLOCK_MONOTONIC) : ::Time.now.to_f end