_internal.classes.sleep - vladzaharia/bitburner GitHub Wiki

Module: _internal/classes/sleep

Table of contents

Classes

Functions

Importable

sleep

sleep(ns, duration, print?): Promise<true>

Sleeps for duration and prints a user-readable string.

export

async

Parameters

Name Type Default value Description
ns NS undefined The Netscript object.
duration number undefined -
print boolean true -

Returns

Promise<true>

Always returns true

Defined in

_internal/classes/sleep.ts:118

Other

getHumanDuration

getHumanDuration(duration): string

Converts a duration in ms to a human readable string like "1 hour".

Parameters

Name Type Description
duration number Duration to convert, in ms.

Returns

string

Defined in

_internal/classes/sleep.ts:133

⚠️ **GitHub.com Fallback** ⚠️