<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>OsclTickCount class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center>
<hr><h1>OsclTickCount Class Reference<br>
<small>
[<a class="el" href="group__osclutil.html">OSCL Util</a>]</small>
</h1><code>#include <<a class="el" href="oscl__tickcount_8h-source.html">oscl_tickcount.h</a>></code>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOsclTickCount.html#d0">TickCount</a> ()</td></tr>
<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOsclTickCount.html#d1">TickCountFrequency</a> ()</td></tr>
<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOsclTickCount.html#d2">TickCountPeriod</a> ()</td></tr>
<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOsclTickCount.html#d3">TicksToMsec</a> (uint32 ticks)</td></tr>
<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOsclTickCount.html#d4">MsecToTicks</a> (uint32 msec)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
OsclTickCount class is used to retrieve the system tick count and the tick counter's frequency.
<p>
The maximum tick count value is equivalent to the maximum uint32 value.
<p>
<hr><h2>Member Function Documentation</h2>
<a name="d4" doxytag="OsclTickCount::MsecToTicks"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> uint32 OsclTickCount::MsecToTicks </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">uint32 </td>
<td class="mdname1" valign="top" nowrap> <em>msec</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This function converts milliseconds to ticks
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
ticks </dl> </td>
</tr>
</table>
<a name="d0" doxytag="OsclTickCount::TickCount"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> uint32 OsclTickCount::TickCount </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This function returns the current system tick count
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
returns the tick count </dl> </td>
</tr>
</table>
<a name="d1" doxytag="OsclTickCount::TickCountFrequency"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> uint32 OsclTickCount::TickCountFrequency </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This function returns the tick frequency in ticks per second
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
ticks per second </dl> </td>
</tr>
</table>
<a name="d2" doxytag="OsclTickCount::TickCountPeriod"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> uint32 OsclTickCount::TickCountPeriod </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This function returns the tick period in microseconds per tick
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
microseconds per tick </dl> </td>
</tr>
</table>
<a name="d3" doxytag="OsclTickCount::TicksToMsec"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> uint32 OsclTickCount::TicksToMsec </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">uint32 </td>
<td class="mdname1" valign="top" nowrap> <em>ticks</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This function converts ticks to milliseconds
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
milliseconds </dl> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="oscl__tickcount_8h-source.html">oscl_tickcount.h</a></ul>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>