OSNanosecondsToTicks

Syntax

#include <cafe/os.h>

#define OSNanosecondsToTicks(nsec) ((((u64)(nsec)) * ((u64) OS_TIMER_CLOCK / 31250)) / 32000)

Parameters

nsec Time in nanoseconds.

Return Values

Time in ticks.

Description

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

Do Not Call From

None.

See Also

OSTicksToCycles
OSTicksToSeconds
OSTicksToMilliseconds
OSTicksToMicroseconds
OSTicksToNanoseconds
OSSecondsToTicks
OSMillisecondsToTicks

Revision History

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


CONFIDENTIAL