comparison src/com/aurellem/capture/IsoTimer.java @ 73:877ae4b2993c tip

merge laptop changes.
author Robert McIntyre <rlm@mit.edu>
date Mon, 10 Mar 2014 18:58:08 -0400
parents a67aef438383
children
comparison
equal deleted inserted replaced
72:dd97f65f940c 73:877ae4b2993c
43 this.framerate = (long) framerate; 43 this.framerate = (long) framerate;
44 this.ticks = 0; 44 this.ticks = 0;
45 } 45 }
46 46
47 public long getTime() { 47 public long getTime() {
48 return this.ticks; 48 return 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;}