OSDiffTick

Syntax

#include <cafe/os.h>

#define OSDiffTick(tick1, tick0) ((s32) (tick1) - (s32) (tick0))

Parameters

tick1 Tick value at OS_TIMER_CLOCK Hz.
tick0 Tick value at OS_TIMER_CLOCK Hz.

Return Values

Time in ticks as an s32 type value.

Description

Returns the difference between two tick values (which are the return values of the OSGetTick function) in ticks as an s32 type (that is, tick1 - tick0).

Do Not Call From

None.

See Also

OSTicksToCycles
OSTicksToSeconds
OSTicksToMilliseconds
OSTicksToMicroseconds
OSSecondsToTicks
OSMicrosecondsToTicks

Revision History

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


CONFIDENTIAL