email me at borlaj@portlandschools.org

Loading
notes previous (14/<14) submit the dump links  
 

Time

 

Time is super easy in java. We need to get the time from the system clock. Which we do below:

 

BTimer myTimer=new BTimer();

 

Then to use it we can get the time passed:

like

 

myTimer.getTimeSeconds();

 

or

 

myTimer.getTimeMS();

 

to reset it

 

myTimer.resetTimer();