161 lines
3.4 KiB
HTML
161 lines
3.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<head>
|
|
<title>NibblePoker's LuaJIT Sleep Library</title>
|
|
<link rel="stylesheet" href="ldoc.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="container">
|
|
|
|
<div id="product">
|
|
<div id="product_logo"></div>
|
|
<div id="product_name"><big><b></b></big></div>
|
|
<div id="product_description"></div>
|
|
</div> <!-- id="product" -->
|
|
|
|
|
|
<div id="main">
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
<div id="navigation">
|
|
<br/>
|
|
<h1>LuaJIT-Sleep</h1>
|
|
|
|
|
|
|
|
<h2>Contents</h2>
|
|
<ul>
|
|
<li><a href="#Functions">Functions</a></li>
|
|
<li><a href="#Fields">Fields</a></li>
|
|
</ul>
|
|
|
|
|
|
<h2>Modules</h2>
|
|
<ul class="nowrap">
|
|
<li><strong>sleep</strong></li>
|
|
</ul>
|
|
<h2>Topics</h2>
|
|
<ul class="">
|
|
<li><a href="topics/readme.md.html">readme</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<h1>Module <code>sleep</code></h1>
|
|
<p>Pure LuaJIT bindings for Windows and Linux native <a href="index.html#">sleep</a> function.</p>
|
|
<p> </p>
|
|
<h3>Info:</h3>
|
|
<ul>
|
|
<li><strong>Copyright</strong>: 2026</li>
|
|
<li><strong>Release</strong>: 1.0.0</li>
|
|
<li><strong>License</strong>: CC0 1.0 Universal (CC0 1.0) (Public Domain)</li>
|
|
<li><strong>Author</strong>: Herwin Bozet (NibblePoker)</li>
|
|
</ul>
|
|
|
|
|
|
<h2><a href="#Functions">Functions</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#sleep_ms">sleep_ms (milliseconds)</a></td>
|
|
<td class="summary">Sleeps for a given amount of milliseconds and returns.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#sleep_s">sleep_s (seconds)</a></td>
|
|
<td class="summary">Sleeps for a given amount of seconds and returns.</td>
|
|
</tr>
|
|
</table>
|
|
<h2><a href="#Fields">Fields</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ignore_errors">ignore_errors</a></td>
|
|
<td class="summary">Allows you to ignore errors about negative numbers and others returned by the OS.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<h2 class="section-header "><a name="Functions"></a>Functions</h2>
|
|
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "sleep_ms"></a>
|
|
<strong>sleep_ms (milliseconds)</strong>
|
|
</dt>
|
|
<dd>
|
|
Sleeps for a given amount of milliseconds and returns. \
|
|
May be interrupted by the OS.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">milliseconds</span>
|
|
number Amount of milliseconds to sleep.
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "sleep_s"></a>
|
|
<strong>sleep_s (seconds)</strong>
|
|
</dt>
|
|
<dd>
|
|
Sleeps for a given amount of seconds and returns. \
|
|
May be interrupted by the OS.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">seconds</span>
|
|
number Amount of seconds to sleep.
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
<h2 class="section-header "><a name="Fields"></a>Fields</h2>
|
|
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "ignore_errors"></a>
|
|
<strong>ignore_errors</strong>
|
|
</dt>
|
|
<dd>
|
|
Allows you to ignore errors about negative numbers and others returned by the OS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
</div> <!-- id="content" -->
|
|
</div> <!-- id="main" -->
|
|
<div id="about">
|
|
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
|
|
<i style="float:right;">Last updated 2026-04-09 16:17:26 </i>
|
|
</div> <!-- id="about" -->
|
|
</div> <!-- id="container" -->
|
|
</body>
|
|
</html>
|