Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CodeTimer {
- long startTime;
- long endTime;
- CodeTimer(){
- current_time = System.currentTimeMillis();
- }
- public float getStartTime(){
- return current_time;
- }
- public float getEndTime(){
- return current_time;
- }
- public float start(){
- startTime = getStartTime();
- }
- public float stop(){
- endTime = getEndTime();
- }
- public float getElapsedTime(){
- return start() - stop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement