class MyTimer { private final long start; public MyTimer() { start = System.currentTimeMillis(); } public long getElapsed() { return System.currentTimeMillis() - start; } }
class MyTimer {
private final long start;
public MyTimer() {
start = System.currentTimeMillis();
}
public long getElapsed() {
return System.currentTimeMillis() - start;
Post a Comment
No comments:
Post a Comment