![JAR search and dependency download from the Maven repository](/logo.png)
com.pyx4j.jni.NativeTimer Maven / Gradle / Ivy
/*
* Pyx4j framework
* Copyright (C) 2006 pyx4.com.
*
* @author vlads
* @version $Id: NativeTimer.java 1 2007-03-09 04:03:48Z vlads $
*/
package com.pyx4j.jni;
/**
*
* Use system high-resolution performance counter.
* Base on article http://www.javaworld.com/javaworld/javaqa/2003-01/01-qa-0110-timing.html
* Used before Java 5
*
*/
public class NativeTimer {
static {
Common.isAvailable();
}
/**
*
* @return Returns the current high-resolution performance counter in milliseconds.
* If the installed hardware does not support a high-resolution performance counter, this value can be zero.
*/
public static native double getTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy