Simple Timer Class

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Usage)
(Usage)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
 
timerRef.startTimer() - kick things off(!)
 
timerRef.startTimer() - kick things off(!)
 +
 
timerRef.stopTimer() - pause time
 
timerRef.stopTimer() - pause time
 +
 
timerRef.resetTimer() - reset time to zero
 
timerRef.resetTimer() - reset time to zero
 +
 
timerRef.getFormattedTime() - returns formatted string
 
timerRef.getFormattedTime() - returns formatted string
  
 
=====Description=====
 
=====Description=====
 
A simple timer class, with standard game-like time string formatting!
 
A simple timer class, with standard game-like time string formatting!

Revision as of 15:02, 5 September 2009

by [1] psychicparrot

Usage

timerRef.startTimer() - kick things off(!)

timerRef.stopTimer() - pause time

timerRef.resetTimer() - reset time to zero

timerRef.getFormattedTime() - returns formatted string

Description

A simple timer class, with standard game-like time string formatting!

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox