Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
327 bytes
|
Line | |
---|
1 | package com.framsticks.util; |
---|
2 | |
---|
3 | /** |
---|
4 | * @author Piotr Sniegowski |
---|
5 | */ |
---|
6 | public class Stopwatch { |
---|
7 | final long start = System.currentTimeMillis(); |
---|
8 | |
---|
9 | public final long elapsed() { |
---|
10 | return System.currentTimeMillis() - start; |
---|
11 | } |
---|
12 | |
---|
13 | @Override |
---|
14 | public final String toString() { |
---|
15 | return elapsed() + "ms"; |
---|
16 | } |
---|
17 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.