List of usage examples for javax.sound.midi Sequencer getMicrosecondPosition
@Override
long getMicrosecondPosition();
From source file:Main.java
public static void main(String[] argv) throws Exception { Sequencer sequencer = MidiSystem.getSequencer(); sequencer.open();//from w w w . j a v a 2s . c o m double seconds = sequencer.getMicrosecondPosition() / 1000000.0; }