comparison src/com/aurellem/capture/RatchetTimer.java @ 64:155c70b7e6de

removed cursing
author Robert McIntyre <rlm@mit.edu>
date Fri, 10 Feb 2012 04:07:05 -0700
parents df4a2d12ea13
children ddb300c5335f
comparison
equal deleted inserted replaced
63:df4a2d12ea13 64:155c70b7e6de
17 17
18 public RatchetTimer(float framerate) { 18 public RatchetTimer(float framerate) {
19 this.framerate = framerate; 19 this.framerate = framerate;
20 this.ticks = 0; 20 this.ticks = 0;
21 } 21 }
22 22
23 /**
24 * return time in milliseconds
25 */
23 public long getTime() { 26 public long getTime() {
24 return (long) (this.ticks * (1.0f / this.framerate) * 1000f); 27 return (long) (this.ticks * (1.0f / this.framerate) * 1000f);
25 } 28 }
26 29
27 public long getResolution() { 30 public long getResolution() {