Function SDL_GetCurrentTime

pub unsafe extern "C" fn SDL_GetCurrentTime(ticks: *mut i64) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Gets the current value of the system realtime clock in nanoseconds since Jan 1, 1970 in Universal Coordinated Time (UTC).

§Parameters

  • ticks: the SDL_Time to hold the returned tick count.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.