This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Download OpenJDK Reference Implementation Sources from | |
# http://jdk.java.net/java-se-ri/10 | |
curl -O https://download.java.net/openjdk/jdk10/ri/openjdk-10_src.zip | |
# Navigate to the hsdis sources | |
unzip openjdk-10_src.zip | |
cd openjdk/src/utils/hsdis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.sound.midi.MidiDevice; | |
import javax.sound.midi.MidiUnavailableException; | |
import javax.sound.midi.spi.MidiDeviceProvider; | |
public class HighResolutionTimer { | |
private static final MidiDevice midiDevice = getMidiOutDevice(); | |
private static MidiDevice getMidiOutDevice() { | |
MidiDeviceProvider provider = new com.sun.media.sound.MidiOutDeviceProvider(); | |
MidiDevice.Info[] info = provider.getDeviceInfo(); |