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>OSNanosecondsToTicks</title>
10</head>
11
12<body>
13
14<h1>OSNanosecondsToTicks</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20#define OSNanosecondsToTicks(nsec)     \
21        ((nsec) / (1000000000 / OS_TIMER_CLOCK))
22</pre></dd></dl>
23
24<h2>Arguments</h2>
25<TABLE class="arguments" border="1" >
26  <tr>
27<TH>nsec</TH>
28<TD>Time in nanoseconds.</TD>
29  </tr>
30</TABLE>
31
32<h2>Return Values</h2>
33<p>Time in ticks.</p>
34
35<H2>Description</H2>
36<P>Converts time representation from nanoseconds to ticks (in <CODE>OS_TIMER_CLOCK</CODE> Hz).</P>
37
38<h2>See Also</h2>
39<P class="reference">
40<A href="../toc.html#Time" target="contents">Time Functions</A>,
41<a href="OSTicksToCycles.html">OSTicksToCycles</a>,
42<a href="OSTicksToSeconds.html">OSTicksToSeconds</a>,
43<a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a>,
44<a href="OSTicksToMicroseconds.html">OSTicksToMicroseconds</a>,
45<a href="OSTicksToNanoseconds.html">OSTicksToNanoconds</a>,
46<a href="OSSecondsToTicks.html">OSSecondsToTicks</a>,
47<a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a>
48</p>
49
50<h2>Revision History</h2>
51<P>
522006/03/01 Initial version.<br>
53</P>
54
55<hr><p>CONFIDENTIAL</p></body>
56</html>