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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
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, assuming that the tick values are <code>s32</code>-type. (In other words,  <SPAN class="argument">tick1</SPAN> - <SPAN class="argument">tick0</SPAN>.)</P>
40
41<h2>See Also</h2>
42<P class="reference">
43<a href="../toc.html#Time" target="contents">Time Functions</a>,
44<a href="OSTicksToCycles.html">OSTicksToCycles</a>,
45<a href="OSTicksToSeconds.html">OSTicksToSeconds</a>,
46<a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a>,
47<a href="OSTicksToMicroseconds.html">OSTicksToMicroseconds</a>,
48<a href="OSSecondsToTicks.html">OSSecondsToTicks</a>,
49<a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a>
50</p>
51
52<H2>Revision History</H2>
53<P>
542006/03/01 Initial version.
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</html>