Class TimerGranularity

  extended by

public class TimerGranularity
extends java.lang.Object

Compute the granularity of the PXLab high resolution timer. This class reads timer values and counts how many values may be read while the timer does not change its value. It also checks what the average difference between two succesive different timer values is. If the number of read operations at a single timer value is 1 then the timer changes value at each read operation. This means that the actual granularity could not be determined since reading the timer and checking whether the value read is different from the prviously read value takes longer as the granularity of the timer.

H. Irtel

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TimerGranularity()
Method Detail


public static void main(java.lang.String[] args)