Files
wren/cli/modules/timer/timer.html

84 lines
3.0 KiB
HTML
Raw Normal View History

2015-11-09 08:01:19 -08:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Timer Class &ndash; Wren</title>
2020-06-05 22:25:23 +00:00
<script type="application/javascript" src="../../../prism.js" data-manual></script>
<script type="application/javascript" src="../../../wren.js"></script>
<link rel="stylesheet" type="text/css" href="../../../prism.css" />
<link rel="stylesheet" type="text/css" href="../../../style.css" />
2015-11-09 08:01:19 -08:00
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic|Source+Code+Pro:400|Lato:400|Sanchez:400italic,400' rel='stylesheet' type='text/css'>
<!-- Tell mobile browsers we're optimized for them and they don't need to crop
the viewport. -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
</head>
<body id="top" class="module">
<header>
<div class="page">
<div class="main-column">
2020-06-05 22:25:23 +00:00
<h1><a href="../../../">wren</a></h1>
2015-11-09 08:01:19 -08:00
<h2>a classy little scripting language</h2>
</div>
</div>
</header>
<div class="page">
<nav class="big">
2020-06-05 22:25:23 +00:00
<a href="../../../"><img src="../../../wren.svg" class="logo"></a>
2015-11-09 08:01:19 -08:00
<ul>
2020-06-05 22:25:23 +00:00
<li><a href="../../">Back to Wren CLI</a></li>
<li><a href="../">Back to CLI Modules</a></li>
<li><a href="./">timer module</a></li>
2015-11-09 08:01:19 -08:00
</ul>
<section>
<h2>timer classes</h2>
<ul>
<li><a href="timer.html">Timer</a></li>
</ul>
</section>
</nav>
<nav class="small">
<table>
<tr>
2020-06-05 22:25:23 +00:00
<td><a href="../">Back to CLI Modules</a></td>
<td><a href="./">timer module</a></td>
2015-11-09 08:01:19 -08:00
</tr>
<tr>
<td colspan="2"><h2>timer classes</h2></td>
</tr>
<tr>
<td>
<ul>
<li><a href="timer.html">Timer</a></li>
</ul>
</td>
<td>
<ul>
</ul>
</td>
</tr>
</table>
</nav>
<main>
<h1>Timer Class</h1>
2021-02-06 15:58:10 +00:00
<h2>Static Method <a href="#static-method" name="static-method" class="header-anchor">#</a></h2>
<h3>Timer.<strong>sleep</strong>(milliseconds) <a href="#timer.sleep(milliseconds)" name="timer.sleep(milliseconds)" class="header-anchor">#</a></h3>
<p>Suspends the current fiber for the given number of milliseconds. It is a runtime error if this is not a non-negative number.</p>
<p>This method is often used in conjunction with the Scheduler class which runs any scheduled tasks in separate fibers whilst the current fiber is sleeping.</p>
<p>Note that this method also suspends the System.clock method which will not give the correct running time for a program as a result.</p>
2015-11-09 08:01:19 -08:00
</main>
</div>
<footer>
<div class="page">
<div class="main-column">
<p>Wren lives
2019-02-06 02:52:27 +00:00
<a href="https://github.com/wren-lang/wren">on GitHub</a>
2015-11-09 08:01:19 -08:00
&mdash; Made with &#x2764; by
<a href="http://journal.stuffwithstuff.com/">Bob Nystrom</a> and
2020-06-12 17:15:45 +00:00
<a href="https://github.com/wren-lang/wren/blob/main/AUTHORS">friends</a>.
2015-11-09 08:01:19 -08:00
</p>
<div class="main-column">
</div>
</footer>
</body>
</html>