Java Code Examples for org.lwjgl.Sys#getTimerResolution()

The following examples show how to use org.lwjgl.Sys#getTimerResolution() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MixinMinecraft.java    From LiquidBounce with GNU General Public License v3.0 4 votes vote down vote up
public long getTime() {
    return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 2
Source File: MixinMinecraft.java    From LiquidBounce with GNU General Public License v3.0 4 votes vote down vote up
public long getTime() {
    return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 3
Source File: DisplayManager.java    From OpenGL-Animation with The Unlicense 4 votes vote down vote up
private static long getCurrentTime() {
	return Sys.getTime() * 1000 / Sys.getTimerResolution();
}
 
Example 4
Source File: DisplayContainer.java    From opsu-dance with GNU General Public License v3.0 4 votes vote down vote up
public long getTime() {
	return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 5
Source File: OpenALStreamPlayer.java    From opsu-dance with GNU General Public License v3.0 2 votes vote down vote up
/**
 * http://wiki.lwjgl.org/index.php?title=LWJGL_Basics_4_%28Timing%29
 * Get the time in milliseconds
 *
 * @return The system time in milliseconds
 */
public long getTime() {
    return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 6
Source File: GameContainer.java    From opsu with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Get the accurate system time
 * 
 * @return The system time in milliseconds
 */
@Override
public long getTime() {
	return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 7
Source File: OpenALStreamPlayer.java    From opsu with GNU General Public License v3.0 2 votes vote down vote up
/**
 * http://wiki.lwjgl.org/index.php?title=LWJGL_Basics_4_%28Timing%29
 * Get the time in milliseconds
 *
 * @return The system time in milliseconds
 */
public long getTime() {
    return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 8
Source File: Animation.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Get the accurate system time
 * 
 * @return The system time in milliseconds
 */
private long getTime() {
	return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}
 
Example 9
Source File: GameContainer.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Get the accurate system time
 * 
 * @return The system time in milliseconds
 */
public long getTime() {
	return (Sys.getTime() * 1000) / Sys.getTimerResolution();
}