539 lines · 23.3 KB · Java
RawDownload
        return bytes;    }     /**     * Return the value of the High Resolution Counter.     *     * The High Resolution Counter returns the number of ticks since     * since the start of the Java virtual machine. The resolution of     * the counter is machine dependent and can be determined from the     * value return by the {@link #highResFrequency} method.     *     * @return  the number of ticks of machine dependent resolution since     *          the start of the Java virtual machine.     *     * @see #highResFrequency     * @see java.lang.System#currentTimeMillis()     */    public native long highResCounter();     /**     * Returns the frequency of the High Resolution Counter, in ticks per     * second.     *     * This value can be used to convert the value of the High Resolution     * Counter, as returned from a call to the {@link #highResCounter} method,     * into the number of seconds since the start of the Java virtual machine.     *     * @return  the frequency of the High Resolution Counter.     * @see #highResCounter     */    public native long highResFrequency();     private static native void registerNatives();     static {        registerNatives();        instance = new Perf();    }}

Lines 501–539 of 539. Previous lines