org.tritonus.midi.device.java
Class SystemCurrentTimeMillisClock
java.lang.Object
org.tritonus.midi.device.java.SystemCurrentTimeMillisClock
- All Implemented Interfaces:
- JavaSequencer.Clock
- public class SystemCurrentTimeMillisClock
- extends Object
- implements JavaSequencer.Clock
Sequencer clock based on System.currentTimeMillis().
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 |
SystemCurrentTimeMillisClock
public SystemCurrentTimeMillisClock()
getMicroseconds
public long getMicroseconds()
- Retrieve system time in microseconds.
This method retrieves the time by calling
System.currentTimeMillis()
.
- Specified by:
getMicroseconds
in interface JavaSequencer.Clock
- Returns:
- the system time in microseconds