Welcome to Computer Programming

 

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();