Simple Timer Class

From Unify Community Wiki
Revision as of 17:10, 19 September 2011 by TomoI (Talk | contribs)

Jump to: navigation, search

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