Skip to content

$queueDuration

$queueDuration will return the queue duration.

Usage

$queueDuration[humanize?]

Parameters

FieldTypeDescriptionRequired
humanize?booleanconvert MS to human-readable time.false

Example(s)

This will return the queue duration

1
client.command({
2
name: 'queueduration',
3
code: `
4
queue duration is:
5
$queueDuration
6
`
7
});