mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
16 lines
301 B
ReStructuredText
16 lines
301 B
ReStructuredText
sleep() Netscript Function
|
|
==========================
|
|
|
|
.. js:function:: sleep(n)
|
|
|
|
:RAM cost: 0 GB
|
|
:param number n: Number of milliseconds to sleep
|
|
|
|
Suspends the script for n milliseconds.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
await ns.sleep(3000); // Will wait 3 seconds.
|