Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. public class StopWatch {
  2.    
  3.     //Attribute Section
  4.     public long elapsedTime;
  5.    
  6.     //Construction Section
  7.     public static long timeStart = java.lang.System.currentTimeMillis();
  8.     public static long timeEnd = java.lang.System.currentTimeMillis();
  9.    
  10.    
  11.     //Method Section
  12.     public long elapsedTime(){
  13.        
  14.         return(timeEnd - timeStart);
  15.            
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement