de.pxlab.pxl.tools.timing
Class TimerGranularity

java.lang.Object
  extended by de.pxlab.pxl.tools.timing.TimerGranularity

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.

Version:
0.1.0
Author:
H. Irtel

Constructor Summary
TimerGranularity()
           
 
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

TimerGranularity

public TimerGranularity()
Method Detail

main

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