diff --git a/src/SDL2.cs b/src/SDL2.cs index b619d9d..95da479 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -4602,6 +4602,21 @@ namespace SDL2 public static extern void SDL_UnlockAudioDevice(uint dev); #endregion + + #region SDL_systimer.h + + /* system timers rely on different OS mechanisms depending on which + * OS the library is compiled against */ + + /* delays the thread's processing based on the milliseconds parameter */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SDL_Delay(UInt32 ms); + + /* returns the milliseconds that have passed since SDL was initialized */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern UInt32 SDL_GetTicks(); + + #endregion } }