OSTicksToCycles

Syntax

#include <revolution/os.h>

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

Arguments

tick Must be OSTime (64-bit) or OSTick (32-bit) type integer value.

Return Values

Time in CPU core cycles.

Description

Converts time representation from ticks (in OS_TIMER_CLOCK Hz) to CPU core cycles (at OS_CORE_CLOCK Hz).

See Also

Time Functions, OSTicksToSeconds, OSTicksToMilliseconds, OSTicksToMicroseconds, OSSecondsToTicks, OSMillisecondsToTicks, OSMicrosecondsToTicks

Revision History

2006/03/01 Initial version.


CONFIDENTIAL