1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSDiffTick</title> 10</head> 11 12<body> 13 14<h1>OSDiffTick</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20#define OSDiffTick(tick1, tick0) ((s32) (tick1) - (s32) (tick0)) 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>tick1</TH> 27<TD>Ticks at <code>OS_TIMER_CLOCK</code> Hz.</TD> 28 </tr> 29 <tr> 30<TH>tick0</TH> 31<TD>Ticks at <code>OS_TIMER_CLOCK</code> Hz.</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<P>Time in ticks as a <CODE>s32</CODE> value.</P> 37 38<H2>Description</H2> 39<P>Takes two tick values (returned by the <a href="OSGetTick.html"><code>OSGetTick</code></a> function) and returns the difference between them (<SPAN class="argument">tick1</SPAN> - <SPAN class="argument">tick0</SPAN>) as a type <code>s32</code> tick value.</P> 40 41<h2>See Also</h2> 42<P class="reference"> 43<a href="../toc.html#Time" target="contents">Time Functions</a><BR><a href="OSTicksToCycles.html">OSTicksToCycles</a><BR><a href="OSTicksToSeconds.html">OSTicksToSeconds</a><BR><a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a><BR><a href="OSTicksToMicroseconds.html">OSTicksToMicroseconds</a><BR><a href="OSSecondsToTicks.html">OSSecondsToTicks</a><BR><a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a> 44</p> 45 46<H2>Revision History</H2> 47<P> 482006/03/01 Initial version. 49</P> 50 51<hr><p>CONFIDENTIAL</p></body> 52</html>