Class com.sekati.time.StopWatch

Description

Simple stopwatch class

Method Index

new StopWatch()
destroy(), lap(), read(), start(), stop()

Inherited from CoreObject

Constructor Detail

StopWatch

public function StopWatch(startNow:Boolean)

constructor

Parameters

startNow(Boolean)

Method Detail

start

public function start():Number

start timer

Return

Number ms since start (0)

stop

public function stop():Number

stop timer

Return

(Number) ms since start

lap

public function lap():Number

record and return lap

Return

(Number) ms since last lap

read

public function read():Number

read total time

Return

(Number) ms since stopwatch was initialized

destroy

public function destroy():Void