lambdabot-4.0: scripts/hoogle/wiki/LibraryDocumentation_2fCPUTime.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>LibraryDocumentation/CPUTime - The Haskell Wiki</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="/moinwiki/classic/css/common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="/moinwiki/classic/css/screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="/moinwiki/classic/css/print.css">
<link rel="Start" href="/hawiki/FrontPage">
<link rel="Alternate" title="Wiki Markup" href="/hawiki/LibraryDocumentation_2fCPUTime?action=raw">
<link rel="Alternate" media="print" title="Print View" href="/hawiki/LibraryDocumentation_2fCPUTime?action=print">
<link rel="Up" href="/hawiki/LibraryDocumentation">
<link rel="Search" href="/hawiki/FindPage">
<link rel="Index" href="/hawiki/TitleIndex">
<link rel="Glossary" href="/hawiki/WordIndex">
<link rel="Help" href="/hawiki/HelpOnFormatting">
</head>
<body lang="en" dir="ltr">
<div id="logo"><a href="/hawiki/FrontPage"><img src="/small-lambda.gif" alt="The Haskell Wiki"></a></div>
<div id="username"><a href="/hawiki/UserPreferences">UserPreferences</a></div>
<div id="title"><h1><a title="Click here to do a full-text search for this title" href="/hawiki/LibraryDocumentation_2fCPUTime?action=fullsearch&value=%2FCPUTime&literal=1&case=1&context=40">LibraryDocumentation/CPUTime</a></h1></div>
<ul id="iconbar">
<li><a title="Up" href="/hawiki/LibraryDocumentation"><img src="/moinwiki/classic/img/moin-parent.png" alt="Up" height="13" width="15"></a></li>
<li><a title="Edit" href="/hawiki/LibraryDocumentation_2fCPUTime?action=edit"><img src="/moinwiki/classic/img/moin-edit.png" alt="Edit" height="12" width="12"></a></li>
<li><a title="View" href="/hawiki/LibraryDocumentation_2fCPUTime"><img src="/moinwiki/classic/img/moin-show.png" alt="View" height="13" width="12"></a></li>
<li><a title="Diffs" href="/hawiki/LibraryDocumentation_2fCPUTime?action=diff"><img src="/moinwiki/classic/img/moin-diff.png" alt="Diffs" height="11" width="15"></a></li>
<li><a title="Info" href="/hawiki/LibraryDocumentation_2fCPUTime?action=info"><img src="/moinwiki/classic/img/moin-info.png" alt="Info" height="11" width="12"></a></li>
<li><a title="Subscribe" href="/hawiki/LibraryDocumentation_2fCPUTime?action=subscribe"><img src="/moinwiki/classic/img/moin-subscribe.png" alt="Subscribe" height="10" width="14"></a></li>
<li><a title="Raw" href="/hawiki/LibraryDocumentation_2fCPUTime?action=raw"><img src="/moinwiki/classic/img/moin-raw.png" alt="Raw" height="13" width="12"></a></li>
<li><a title="Print" href="/hawiki/LibraryDocumentation_2fCPUTime?action=print"><img src="/moinwiki/classic/img/moin-print.png" alt="Print" height="14" width="16"></a></li>
</ul>
<ul id="navibar">
<li><a href="/hawiki/FrontPage">FrontPage</a></li>
<li><a href="/hawiki/RecentChanges">RecentChanges</a></li>
<li><a href="/hawiki/FindPage">FindPage</a></li>
<li><a href="/hawiki/HelpContents">HelpContents</a></li>
</ul>
<hr id="pagetrail">
<div id="content" lang="en" dir="ltr">
<h2 id="head-a6ea707e5fa7bf03213557afa08cd6b01f303f1a">CPUTime - Library Documentation</h2>
<p>
Part of the <a href="/hawiki/LibraryDocumentation">LibraryDocumentation</a> project.
</p>
<p>
A standard Haskell 98 library for measuring elapsed CPU/Processor Time. In the hierarchical libraries this has become System.CPUTime. <a class="external" href="http://haskell.org/ghc/docs/latest/html/libraries/base/System-CPUTime.html">(Haddock)</a>
</p>
<p>
<a id="v:cpuTimePrecision"> <h3 id="head-278b725e8ba0393a991d5e5c895e878e1186d1d3">cpuTimePrecision :: Integer</h3>
</p>
<p>
This is the precision of the result given by <a href="#v:getCPUTime">getCPUTime</a>. This is the smallest measurable difference in CPU time that the implementation can record, and is given as an integral number of picoseconds.
</p>
<p>
In the hierarchical libraries, this has been moved to the module System.CPUTime. <a class="external" href="http://haskell.org/ghc/docs/latest/html/libraries/base/System-CPUTime.html#v%cpuTimePrecision">(Haddock)</a>
</p>
<p>
<a id="v:getCPUTime"> <h3 id="head-677d1f37a7f98f3c89fec24ec679fe5adab73774">getCPUTime :: IO Integer</h3>
</p>
<p>
Computation <tt>getCPUTime</tt> returns the number of picoseconds of CPU time used by the current program. The precision of this result is given by <a href="#v:cpuTimePrecision">cpuTimePrecision</a>.
</p>
<pre class=code>
> getCPUTime >>= \x -> print x
296875000000
</PRE>
</BODY>
</HTML>
<p>
</p>
<p>
In the hierarchical libraries, this has been moved to the module System.CPUTime. <a class="external" href="http://haskell.org/ghc/docs/latest/html/libraries/base/System-CPUTime.html#v%3AgetCPUTime">(Haddock)</a>
</p>
</div>
<div id="footer">
<div id="credits">
<p>
<a href="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a><br>
<a href="http://www.python.org/">
<img src="/moinwiki/classic/img/PythonPowered.png" width="55" height="22" alt="PythonPowered">
</a>
</p>
</div>
<a href="/hawiki/LibraryDocumentation_2fCPUTime?action=refresh&arena=Page.py&key=LibraryDocumentation_2fCPUTime.text_html">RefreshCache</a> for this page (cached 2005-12-13 11:46:10)<br>
<p>Immutable page (last edited 2005-12-13 11:46:10 by <span title="pc163.ad.cs.york.ac.uk"><a href="/hawiki/NeilMitchell">NeilMitchell</a></span>)</p>
<form method="POST" action="/hawiki/LibraryDocumentation_2fCPUTime">
<p>
<input type="hidden" name="action" value="inlinesearch">
<input type="hidden" name="context" value="40">
<a href="/hawiki/FindPage?value=LibraryDocumentation%2FCPUTime">FindPage</a> or search titles <input type="text" name="text_title" value="" size="15" maxlength="50"><input type="image" src="/moinwiki/classic/img/moin-search.png" name="button_title" alt="[?]">, full text <input type="text" name="text_full" value="" size="15" maxlength="50"><input type="image" src="/moinwiki/classic/img/moin-search.png" name="button_full" alt="[?]"> or <a href="/hawiki/SiteNavigation">SiteNavigation</a>
</p>
</form>
<p>Or try one of these actions: <a href="/hawiki/LibraryDocumentation_2fCPUTime?action=DeletePage">DeletePage</a>, <a href="/hawiki/LibraryDocumentation_2fCPUTime?action=LikePages">LikePages</a>, <a href="/hawiki/LibraryDocumentation_2fCPUTime?action=LocalSiteMap">LocalSiteMap</a>, <a href="/hawiki/LibraryDocumentation_2fCPUTime?action=SpellCheck">SpellCheck</a></p>
</div>
</body>
</html>