Function SDL_NS_TO_US

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

Convert nanoseconds to microseconds.

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 microseconds.

§Thread safety

It is safe to call this macro from any thread.

§Availability

This macro is available since SDL 3.2.0.