Method: RMTools.puttime

Defined in:
lib/rmtools/time/helpers.rb

.puttime(ms = nil) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/rmtools/time/helpers.rb', line 4

def puttime(ms=nil)
  t = Time.now
  if ms
    t.strftime("%H:%M:%S")+sprintf(".%03d ", t.usec/1000)
  else
    t.strftime("%d.%m.%y %H:%M:%S ")
  end
end