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=windows-1252"> 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 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/os.h></code></pre> 21 </dd> 22<dd><pre><CODE>#define OSDiffTick(tick1, tick0) ((s32) (tick1) - (s32) (tick0))</CODE></pre> 23 </dd> 24</dl> 25 26<h2>Arguments</h2> 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 <tr> 29<TD width="120" bgcolor="#ffffe8"><code><strong><em><STRONG><EM><CODE>tick1</CODE></EM></STRONG></em></strong></code></TD> 30<TD width="520">Tick value at <code>OS_TIMER_CLOCK</code> Hz.</TD> 31 </tr> 32 <tr> 33<TD width="120" bgcolor="#ffffe8"><code><strong><em><STRONG><EM><CODE>tick0</CODE></EM></STRONG></em></strong></code></TD> 34 <TD width="520"> 35Tick value at <code>OS_TIMER_CLOCK</code> Hz.</TD> 36 </tr> 37</TABLE> 38<h2>Return Values</h2> 39 40<P>Time in ticks as an <code>s32</code> type value.</P> 41<H2>Description</H2> 42<P>Returns the difference between two tick values (which are the return values of the <a href="OSGetTick.html"><code>OSGetTick</code></a> function) in ticks as an <strong><code>s32</code></strong> type (in other words <code>tick1</code> - <code>tick0</code>).</P> 43 44 45<h2>See Also</h2> 46 47<p><a href="../toc.html#Time" target="contents">Time Functions</a>, <code><a href="OSTicksToCycles.html">OSTicksToCycles()</a></code>, <code><a href="OSTicksToSeconds.html">OSTicksToSeconds()</a></code>, <code><a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds()</a></code>, <code><a href="OSTicksToMicroseconds.html">OSTicksToMicroseconds()</a></code>, <code><a href="OSSecondsToTicks.html">OSSecondsToTicks()</a></code>, <code><a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks()</a></code></p> 48<H2>Revision History</H2> 49<P>03/01/2006 Initial version.</P> 50</body> 51</html>