Files
MPIonCell/documentation/developer/html/d5/de2/moc__wtime__ppu_8c-source.html
2017-10-26 19:57:24 +02:00

36 lines
2.5 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): src/ppu/system/moc_wtime_ppu.c Source File</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 class="current"><a href="../../files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>src/ppu/system/moc_wtime_ppu.c</h1><a href="../../dc/d54/moc__wtime__ppu_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>&gt;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;sys/time.h&gt;</span>
<a name="l00005"></a>00005
<a name="l00006"></a><a class="code" href="../../d8/da6/group__environment__timer.html#g415b17505f06a12f26c6aa735d00158f">00006</a> <span class="keywordtype">double</span> <a class="code" href="../../d8/da6/group__environment__timer.html#g415b17505f06a12f26c6aa735d00158f" title="Returns a floating-point number of seconds, representing elapsed wall-clock time...">MOC_Wtime</a>(<span class="keywordtype">void</span>)
<a name="l00007"></a>00007 {
<a name="l00008"></a>00008 <span class="keyword">struct </span>timeval time;
<a name="l00009"></a>00009 gettimeofday(&amp;time, NULL);
<a name="l00010"></a>00010 <span class="keywordflow">return</span> ((<span class="keywordtype">double</span>) time.tv_sec) + ((double) time.tv_usec)
<a name="l00011"></a>00011 / ((double) 1000000.0);
<a name="l00012"></a>00012 }
<a name="l00013"></a>00013
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:49:47 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>