File: monotonic.rb

package info (click to toggle)
ruby-circuitbox 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: ruby: 533; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Circuitbox
  module TimeHelper
    module Monotonic
      module_function

      def current_second
        Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
      end
    end
  end
end