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>OSTicksToCycles</title>
10</head>
11
12<body>
13
14<h1>OSTicksToCycles</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20#define OSTicksToCycles(ticks)    \
21        ((ticks) * (OS_CORE_CLOCK / 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 <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 CPU core cycles.</p>
34
35<H2>Description</H2>
36<P>Converts time representation from ticks (in <CODE>OS_TIMER_CLOCK</CODE> Hz) to CPU core cycles (at <CODE>OS_CORE_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="OSTicksToSeconds.html">OSTicksToSeconds</a>,
42<a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a>,
43<a href="OSTicksToMicroseconds.html">OSTicksToMicroseconds</a>,
44<a href="OSSecondsToTicks.html">OSSecondsToTicks</a>,
45<a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a>,
46<a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a>
47</p>
48
49<H2>Revision History</H2>
50<P>
512006/03/01 Initial version.<br>
52</P>
53
54<hr><p>CONFIDENTIAL</p></body>
55</html>