Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class StopWatch {
- //Attribute Section
- public long elapsedTime;
- //Construction Section
- public static long timeStart = java.lang.System.currentTimeMillis();
- public static long timeEnd = java.lang.System.currentTimeMillis();
- //Method Section
- public long elapsedTime(){
- return(timeEnd - timeStart);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement