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>OSTicksToNanoseconds</title> 10</head> 11 12<body> 13 14<h1>OSTicksToNanoseconds</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20#define OSTicksToNanoseconds(ticks) \ 21 ((ticks) * (1000000000 / OS_TIMER_CLOCK)) 22</pre></dd></dl> 23 24<h2>Arguments</h2> 25<TABLE class="arguments" border="1" > 26 <tr> 27<TH>tick</TH> 28<TD>Must be an <code>OSTime</code> (64-bit) or <code>OSTick</code> (32-bit) type integer value.</TD> 29 </tr> 30</TABLE> 31 32<h2>Return Values</h2> 33<p>Time in nanoseconds.</p> 34 35<H2>Description</H2> 36<P>Converts the time representation from ticks (in <CODE>OS_TIMER_CLOCK</CODE> Hz) to nanoseconds.</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="OSSecondsToTicks.html">OSSecondsToTicks</a>, 45<a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a>, 46<a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a>, 47<a href="OSNanosecondsToTicks.html">OSNanosecondsToTicks</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>