Function SDL_NS_TO_MS

pub const fn SDL_NS_TO_MS(NS: u64) -> u64
Available on crate feature dep_sdl3 only.
Expand description

Convert nanoseconds to milliseconds.

This performs a division, so the results can be dramatically different if NS is an integer or floating point value.

§Parameters

  • NS: the number of nanoseconds to convert.

§Return value

Returns NS, expressed in milliseconds.

§Thread safety

It is safe to call this macro from any thread.

§Availability

This macro is available since SDL 3.2.0.