We use the "getPeriod()" method in the Counter class. Something (in Java) like:
Code:
public final static double kTicksPerRevolution = 2.0;
private Counter counter;
double getRPM()
{
return 60.0/(counter.getPeriod()*kTicksPerRevolution);
}
The factor of 60 converts between revolutions per second and RPM.