Simple Timer Class

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
m (removed dead link)
m
 
Line 1: Line 1:
 +
{{stub}}
 +
 
by psychicparrot
 
by psychicparrot
  

Latest revision as of 17:57, 7 December 2012

This article is a stub.

You can help UnifyWiki by expanding it.


by psychicparrot

[edit] 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