Files
MPIonCell/documentation/developer/html/d3/dd2/group__internal__timer.html
T
2017-10-26 19:57:24 +02:00

45 lines
2.8 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="../../d2/d16/group__internal__env.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="../../d3/dd2/group__internal__timer.png" border="0" alt="" usemap="#de/dc0/d3_2dd2_2group____internal____timer_map">
<map name="de/dc0/d3_2dd2_2group____internal____timer_map">
<area shape="rect" href="../../d2/d16/group__internal__env.html" title="Internals about Startup &amp; Shutdown and Error&#45;Handling." alt="" coords="5,5,187,32"></map></td></tr></table></center>
</div>
On the PPU "gettimeofday()" from time.h is used, because it is the only function which seems to work ("clock()" from time.h always returns 0).<p>
On the SPU there are two implementations. One uses also "gettimeofday()" and the other uses the spu-timer-library. The reason for this lies in the fact, that the spu-timer-library was marked as prototype in Cell SDK 3.0 and the future development of this library was uncertain. Cell SDK 3.1 has integrated the spu-timer-library in the main-library and so the gettimeofday-implementation is now obsolete.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>The timebase-constant which is needed to calculate time is hardcoded, because there was no according function for retrieving this value in Cell SDK 3.0 and we had only access to a playstation 3. Now Cell SDK 3.1 provides a function for retrieving the timebase value, but we didn't use it to provide backwards-compatibility. So if you plan to use MOC on another platform than playstation 3 keep in mind to check if the timebase-value is correct. </dd></dl>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:51:06 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>