Files
MPIonCell/documentation/developer/html/d8/da6/group__environment__timer.html
2017-10-26 19:57:24 +02:00

103 lines
5.1 KiB
HTML
Executable File

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MPI On Cell (Documentation): Timers and Synchronization</title>
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
<link href="../../tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="../../main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="../../modules.html"><span>Modules</span></a></li>
<li><a href="../../annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="../../files.html"><span>Files</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Timers and Synchronization<br>
<small>
[<a class="el" href="../../de/d1b/group__environment__main.html">Environmental Management</a>]</small>
</h1>
<p>
<div class="dynheader">
Collaboration diagram for Timers and Synchronization:</div>
<div class="dynsection">
<center><table><tr><td><img src="../../d8/da6/group__environment__timer.png" border="0" alt="" usemap="#d0/d16/d8_2da6_2group____environment____timer_map">
<map name="d0/d16/d8_2da6_2group____environment____timer_map">
<area shape="rect" href="../../de/d1b/group__environment__main.html" title="This chapter discusses routines for getting and, where appropriate, setting various..." alt="" coords="5,5,187,32"></map></td></tr></table></center>
</div>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Functions to measure time.
<p>
On the PPU gettimeofday from time.h is used. On the SPU either also gettimeofday or the spu-timer-library is used depending on the configuration during compilation of the MOC-library. When gettimeofday is used on the SPU the time is global in the MOC-environment with the disadvantage that the SPU-threads get their times from the PPU using DMA causing inaccuracy and delays.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/da6/group__environment__timer.html#g415b17505f06a12f26c6aa735d00158f">MOC_Wtime</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a floating-point number of seconds, representing elapsed wall-clock time since some time in the past. <a href="#g415b17505f06a12f26c6aa735d00158f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/da6/group__environment__timer.html#gc846a7a21aeafdc5e960e91cb7d602be">MOC_Wtick</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the resolution of Moc_Wtime in seconds. <a href="#gc846a7a21aeafdc5e960e91cb7d602be"></a><br></td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="gc846a7a21aeafdc5e960e91cb7d602be"></a><!-- doxytag: member="moc.h::MOC_Wtick" ref="gc846a7a21aeafdc5e960e91cb7d602be" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double MOC_Wtick </td>
<td>(</td>
<td class="paramtype">void&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the resolution of Moc_Wtime in seconds.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>resolution in seconds. </dd></dl>
<p>Definition at line <a class="el" href="../../d8/d3b/moc__wtick__ppu_8c-source.html#l00006">6</a> of file <a class="el" href="../../d8/d3b/moc__wtick__ppu_8c-source.html">moc_wtick_ppu.c</a>.</p>
</div>
</div><p>
<a class="anchor" name="g415b17505f06a12f26c6aa735d00158f"></a><!-- doxytag: member="moc.h::MOC_Wtime" ref="g415b17505f06a12f26c6aa735d00158f" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double MOC_Wtime </td>
<td>(</td>
<td class="paramtype">void&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns a floating-point number of seconds, representing elapsed wall-clock time since some time in the past.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>wall-clock time in seconds. </dd></dl>
<p>Definition at line <a class="el" href="../../d5/de2/moc__wtime__ppu_8c-source.html#l00006">6</a> of file <a class="el" href="../../d5/de2/moc__wtime__ppu_8c-source.html">moc_wtime_ppu.c</a>.</p>
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:50:45 2009 for MPI On Cell (Documentation) by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>