OSTicksToCycles

Syntax

#include <cafe/os.h>

#define OSTicksToCycles(ticks) (((ticks) * ((OS_CORE_CLOCK * 2) / OS_TIMER_CLOCK)) / 2)

Parameters

ticks OSTime (64-bits) or OSTick (32-bits) type integer value.

Return Values

Time in CPU core cycles.

Description

Converts time from units of ticks (at OS_TIMER_CLOCK Hz) to CPU core cycles (at OS_CORE_CLOCK Hz).

Do Not Call From

None.

See Also

OSTicksToSeconds
OSTicksToMilliseconds
OSTicksToMicroseconds
OSSecondsToTicks
OSMillisecondsToTicks
OSMicrosecondsToTicks

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