Sha256: edeefaab4a4638643e7f5f22afafff14fe375dd789630697695ddb6b16673a94
Contents?: true
Size: 392 Bytes
Versions: 20
Compression:
Stored size: 392 Bytes
Contents
module CypressRails class Server class Timer def initialize(expire_in) @start = current @expire_in = expire_in end def expired? current - @start >= @expire_in end def stalled? @start == current end private def current Process.clock_gettime(Process::CLOCK_MONOTONIC) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems