php8.5
Home/ Manual/ monitoring / commandsucceededevent/ MongoDB\Driver\Monitoring\CommandSucceededEvent::getDurationMicros

MongoDB\Driver\Monitoring\CommandSucceededEvent::getDurationMicros

PHP function Edit on GitHub ✎

(mongodb >=1.3.0)

Returns the command's duration in microseconds

Description

MongoDB\Driver\Monitoring\CommandSucceededEvent::getDurationMicros(): int

The command's duration is a calculated value that includes the time to send the message and receive the reply from the server.

Parameters Parameters

Return Values

Returns the command's duration in microseconds.

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/commandsucceededevent/getdurationmicros.xml · from the official PHP manual (php/doc-en)