Simple Timer Class

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Description)
m (removed dead link)
Line 1: Line 1:
by [http://www.psychicparrot.ca] psychicparrot
+
by psychicparrot
  
 
== Usage ==
 
== Usage ==

Revision as of 17:10, 19 September 2011

by psychicparrot

Usage

Save the script below as 'Timer.cs'

Timer timerRef=new(Timer); // <--creates instance of the timer class

timerRef.startTimer(); // <- kick things off(!)

timerRef.stopTimer(); //<- pause time

timerRef.resetTimer(); // <- reset time to zero

timerRef.getFormattedTime() - returns formatted string

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox