Package org.lwjgl.sdl
Class SDLTimer
java.lang.Object
org.lwjgl.sdl.SDLTimer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromSDL.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final longstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic intnSDL_AddTimer(int interval, long callback, long userdata) SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void * userdata)static intnSDL_AddTimerNS(long interval, long callback, long userdata) SDL_TimerID SDL_AddTimerNS(Uint64 interval, SDL_NSTimerCallback callback, void * userdata)static intSDL_AddTimer(int interval, SDL_TimerCallbackI callback, long userdata) SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void * userdata)static intSDL_AddTimerNS(long interval, SDL_NSTimerCallbackI callback, long userdata) SDL_TimerID SDL_AddTimerNS(Uint64 interval, SDL_NSTimerCallback callback, void * userdata)static voidSDL_Delay(int ms) void SDL_Delay(Uint32 ms)static voidSDL_DelayNS(long ns) void SDL_DelayNS(Uint64 ns)static voidSDL_DelayPrecise(long ns) void SDL_DelayPrecise(Uint64 ns)static longUint64 SDL_GetPerformanceCounter(void)static longUint64 SDL_GetPerformanceFrequency(void)static longUint64 SDL_GetTicks(void)static longUint64 SDL_GetTicksNS(void)static longSDL_MS_TO_NS(long MS) Uint64 SDL_MS_TO_NS(Uint64 MS)static longSDL_NS_TO_MS(long NS) Uint64 SDL_NS_TO_MS(Uint64 NS)static longSDL_NS_TO_SECONDS(long NS) Uint64 SDL_NS_TO_SECONDS(Uint64 NS)static longSDL_NS_TO_US(long NS) Uint64 SDL_NS_TO_US(Uint64 NS)static booleanSDL_RemoveTimer(int id) bool SDL_RemoveTimer(SDL_TimerID id)static longSDL_SECONDS_TO_NS(long S) Uint64 SDL_SECONDS_TO_NS(Uint64 S)static longSDL_US_TO_NS(long US) Uint64 SDL_US_TO_NS(Uint64 US)
-
Field Details
-
SDL_MS_PER_SECOND
public static final int SDL_MS_PER_SECOND- See Also:
-
SDL_US_PER_SECOND
public static final int SDL_US_PER_SECOND- See Also:
-
SDL_NS_PER_SECOND
public static final long SDL_NS_PER_SECOND- See Also:
-
SDL_NS_PER_MS
public static final int SDL_NS_PER_MS- See Also:
-
SDL_NS_PER_US
public static final int SDL_NS_PER_US- See Also:
-
-
Method Details
-
SDL_GetTicks
public static long SDL_GetTicks()Uint64 SDL_GetTicks(void) -
SDL_GetTicksNS
public static long SDL_GetTicksNS()Uint64 SDL_GetTicksNS(void) -
SDL_GetPerformanceCounter
public static long SDL_GetPerformanceCounter()Uint64 SDL_GetPerformanceCounter(void) -
SDL_GetPerformanceFrequency
public static long SDL_GetPerformanceFrequency()Uint64 SDL_GetPerformanceFrequency(void) -
SDL_Delay
public static void SDL_Delay(int ms) void SDL_Delay(Uint32 ms) -
SDL_DelayNS
public static void SDL_DelayNS(long ns) void SDL_DelayNS(Uint64 ns) -
SDL_DelayPrecise
public static void SDL_DelayPrecise(long ns) void SDL_DelayPrecise(Uint64 ns) -
nSDL_AddTimer
public static int nSDL_AddTimer(int interval, long callback, long userdata) SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void * userdata) -
SDL_AddTimer
SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void * userdata) -
nSDL_AddTimerNS
public static int nSDL_AddTimerNS(long interval, long callback, long userdata) SDL_TimerID SDL_AddTimerNS(Uint64 interval, SDL_NSTimerCallback callback, void * userdata) -
SDL_AddTimerNS
SDL_TimerID SDL_AddTimerNS(Uint64 interval, SDL_NSTimerCallback callback, void * userdata) -
SDL_RemoveTimer
public static boolean SDL_RemoveTimer(int id) bool SDL_RemoveTimer(SDL_TimerID id) -
SDL_SECONDS_TO_NS
public static long SDL_SECONDS_TO_NS(long S) Uint64 SDL_SECONDS_TO_NS(Uint64 S) -
SDL_NS_TO_SECONDS
public static long SDL_NS_TO_SECONDS(long NS) Uint64 SDL_NS_TO_SECONDS(Uint64 NS) -
SDL_MS_TO_NS
public static long SDL_MS_TO_NS(long MS) Uint64 SDL_MS_TO_NS(Uint64 MS) -
SDL_NS_TO_MS
public static long SDL_NS_TO_MS(long NS) Uint64 SDL_NS_TO_MS(Uint64 NS) -
SDL_US_TO_NS
public static long SDL_US_TO_NS(long US) Uint64 SDL_US_TO_NS(Uint64 US) -
SDL_NS_TO_US
public static long SDL_NS_TO_US(long NS) Uint64 SDL_NS_TO_US(Uint64 NS)
-