@jsh/system

@jsh/system

Since v8.0.52

now()

Get the process id of the current process.

Syntax

now()
Parameters

None.

Return value

Current time in native object.

Usage example

1
2
const m = require("@jsh/system")
console.log("now =", m.now())

sleep()

Get the process id of the current process.

Syntax

sleep(seconds)
Parameters

seconds Number sleep time in seconds

Return value

None.

Usage example

1
2
const m = require("@jsh/system")
m.sleep(10)
Last updated on