Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 7f0e9d2cc294974b84562d13b27b6991 > files > 34

ocamlviz-1.01-1.1mdv2010.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Monitor_sig.Monitor.Tag.html">
<link rel="next" href="Monitor_sig.Monitor.Value.html">
<link rel="Up" href="Monitor_sig.Monitor.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Binary" rel="Chapter" href="Binary.html">
<link title="Bproto" rel="Chapter" href="Bproto.html">
<link title="Db" rel="Chapter" href="Db.html">
<link title="Graph" rel="Chapter" href="Graph.html">
<link title="Monitor_sig" rel="Chapter" href="Monitor_sig.html">
<link title="Ocamlviz" rel="Chapter" href="Ocamlviz.html">
<link title="Ocamlviz_threads" rel="Chapter" href="Ocamlviz_threads.html">
<link title="Protocol" rel="Chapter" href="Protocol.html">
<link title="Timemap" rel="Chapter" href="Timemap.html"><title>Monitor_sig.Monitor.Time</title>
</head>
<body>
<div class="navbar"><a href="Monitor_sig.Monitor.Tag.html">Previous</a>
&nbsp;<a href="Monitor_sig.Monitor.html">Up</a>
&nbsp;<a href="Monitor_sig.Monitor.Value.html">Next</a>
</div>
<center><h1>Module <a href="type_Monitor_sig.Monitor.Time.html">Monitor_sig.Monitor.Time</a></h1></center>
<br>
<pre><span class="keyword">module</span> Time: <code class="code">sig</code> <a href="Monitor_sig.Monitor.Time.html">..</a> <code class="code">end</code></pre>A module that allows time monitoring.<br>
<hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t </pre>

<pre><span class="keyword">val</span> <a name="VALelapsed_time"></a>elapsed_time : <code class="type">unit -> float</code></pre><div class="info">
Time passed since the initialization (in seconds).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALcreate"></a>create : <code class="type">string -> <a href="Monitor_sig.Monitor.Time.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">create s</code> creates a time called <code class="code">s</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALkill"></a>kill : <code class="type"><a href="Monitor_sig.Monitor.Time.html#TYPEt">t</a> -> unit</code></pre><div class="info">
<code class="code">kill t</code> kills a time <code class="code">t</code>. This means that this time
	  won't be monitored anymore.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALstart"></a>start : <code class="type"><a href="Monitor_sig.Monitor.Time.html#TYPEt">t</a> -> unit</code></pre><div class="info">
<code class="code">start t</code> starts the time monitoring <code class="code">t</code>
	  at the place where it is used.<br>
<b>Raises</b> <code>Already_started</code> if <code class="code">t</code> is already running.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALstop"></a>stop : <code class="type"><a href="Monitor_sig.Monitor.Time.html#TYPEt">t</a> -> unit</code></pre><div class="info">
<code class="code">stop t</code> sets the end of the time monitoring <code class="code">t</code>
	  at the place where it is used.<br>
<b>Raises</b> <code>Not_started</code> if no <code class="code">start t</code> was previously called.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALtime"></a>time : <code class="type">string -> ('a -> 'b) -> 'a -> 'b</code></pre><div class="info">
<code class="code">time s f arg</code> monitors the time spent in the function <code class="code">f</code>.<br>
</div>
</body></html>