Class: Time

Inherits:
Object show all
Defined in:
lib/cutter/stamper.rb

Instance Method Summary collapse

Instance Method Details

#ms_since(time) ⇒ Object



2
3
4
# File 'lib/cutter/stamper.rb', line 2

def ms_since time
  ((Time.now - time) * 1000).to_i
end