Function SDL_US_TO_NS

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

Convert microseconds to nanoseconds.

This only converts whole numbers, not fractional microseconds.

§Parameters

  • US: the number of microseconds to convert.

§Return value

Returns US, expressed in nanoseconds.

§Thread safety

It is safe to call this macro from any thread.

§Availability

This macro is available since SDL 3.2.0.