comparison src/com/aurellem/capture/IsoTimer.java @ 69:ddb300c5335f

fixed RatchetTimer time reporting.
author Robert McIntyre <rlm@mit.edu>
date Wed, 29 May 2013 17:15:41 -0400
parents f5e52169f056
children a67aef438383
comparison
equal deleted inserted replaced
68:302d5e9ad120 69:ddb300c5335f
47 public long getTime() { 47 public long getTime() {
48 return this.ticks; 48 return this.ticks;
49 } 49 }
50 50
51 public long getResolution() { 51 public long getResolution() {
52 return (long) framerate; 52 return framerate;
53 } 53 }
54 54
55 public float getFrameRate() { 55 public float getFrameRate() {
56 return this.framerate; 56 return framerate;
57 } 57 }
58 58
59 public float getTimePerFrame() { 59 public float getTimePerFrame() {
60 return (float) (1.0f / this.framerate); 60 return (float) (1.0f / framerate);
61 } 61 }
62 62
63 public void update() {this.ticks++;} 63 public void update() {this.ticks++;}
64 64
65 public void reset() {this.ticks = 0;} 65 public void reset() {this.ticks = 0;}