mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-19 06:00:04 +00:00
reworked painting added animations reworked point2 added point3 point4 made tag inner class in Debugger added fps animation parsing debuggers made new thread for painting at 60fps
20 lines
367 B
Java
20 lines
367 B
Java
package guiTree.Helper;
|
|
|
|
public class Timer {
|
|
private long now;
|
|
private long prev;
|
|
|
|
public void startTiming() {
|
|
prev = System.currentTimeMillis();
|
|
}
|
|
|
|
public long stopTiming() {
|
|
now = System.currentTimeMillis();
|
|
return now - prev;
|
|
}
|
|
|
|
public long getTime() {
|
|
return System.currentTimeMillis() - prev;
|
|
}
|
|
}
|