org.tritonus.midi.device.java
Class SunMiscPerfClock

java.lang.Object
  extended byorg.tritonus.midi.device.java.SunMiscPerfClock
All Implemented Interfaces:
JavaSequencer.Clock

public class SunMiscPerfClock
extends Object
implements JavaSequencer.Clock

Sequencer clock based on sun.misc.Perf. Sun JDK 1.4.2 or later is required to compile this class.


Constructor Summary
SunMiscPerfClock()
           
 
Method Summary
 long getMicroseconds()
          Retrieve system time in microseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunMiscPerfClock

public SunMiscPerfClock()
Method Detail

getMicroseconds

public long getMicroseconds()
Retrieve system time in microseconds. This method retrieves the time by calling Perf.

Specified by:
getMicroseconds in interface JavaSequencer.Clock
Returns:
the system time in microseconds