OSMicrosecondsToTicks

Syntax

#include <cafe/os.h>

#define OSMicrosecondsToTicks(usec) ((((u64)(usec)) * OS_TIMER_CLOCK) / 1000000)

Parameters

usec Time in microseconds.

Return Values

Time in ticks.

Description

Converts time from microseconds to ticks (at OS_TIMER_CLOCK Hz).

Do Not Call From

None.

See Also

OSTicksToCycles
OSTicksToSeconds
OSTicksToMilliseconds
OSTicksToMicroseconds
OSSecondsToTicks
OSMillisecondsToTicks

Revision History

2013-05-08 Automated cleanup pass.
2012-08-01 Cleanup Pass
2012-05-25 Match actual header.
2010-08-30 Initial version.


CONFIDENTIAL