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
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/os.h&gt;</code></pre>
21  </dd>
22  <dd><pre><CODE>#define OSNanosecondsToTicks(nsec)     \
23        ((nsec) / (1000000000 / OS_TIMER_CLOCK))</CODE></pre>
24  </dd>
25</dl>
26
27<h2>Arguments</h2>
28<TABLE border="1" cellpadding="3" cellspacing="0.1">
29  <tr>
30<TD width="120" bgcolor="#ffffe8"><code><strong><em><STRONG><EM><CODE>nsec</CODE></EM></STRONG></em></strong></code></TD>
31<TD width="520"><span>Time in nanoseconds.</span></TD>
32    </tr>
33</TABLE>
34<h2>Return Values</h2>
35
36<p>Time in ticks.</p>
37<H2>Description</H2>
38<P>Converts time from unit of nanoseconds to ticks (at <code>OS_TIMER_CLOCK</code> Hz).</P>
39
40
41
42<h2>See Also</h2>
43
44<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>, <a href="OSTicksToNanoseconds.html"><code>OSTicksToNanoseconds</code></a>, <code><a href="OSSecondsToTicks.html">OSSecondsToTicks</a></code>, <code><a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a></code></p>
45
46<h2>Revision History</h2>
47<P>2006/03/01 Initial version.</P>
48
49<hr>
50<P>CONFIDENTIAL</p>
51</BODY>
52</HTML>