Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
limer
master
Limer
Cli
Command
Timer
AlreadyStarted
AlreadyStopped
MissingFile
Built with Crystal 1.9.2
2023-10-07 21:45:57 UTC
class
Limer::Timer
Limer::Timer
Reference
Object
Defined in:
limer/timer.cr
Constant Summary
FINISH_LINE
=
1
START_LINE
=
0
Constructors
.new
(name : String)
Instance Method Summary
#duration
#finish_time
: Time | Nil
#name
: String
#reset
#start
#start!
#start_time
: Time
#stop
Constructor Detail
def self.
new
(name : String)
#
[
View source
]
Instance Method Detail
def
duration
#
[
View source
]
def
finish_time
: Time | Nil
#
[
View source
]
def
name
: String
#
[
View source
]
def
reset
#
[
View source
]
def
start
#
[
View source
]
def
start!
#
[
View source
]
def
start_time
: Time
#
[
View source
]
def
stop
#
[
View source
]