Home/
Manual/
monitoring / commandfailedevent/ MongoDB\Driver\Monitoring\CommandFailedEvent::getDurationMicros
MongoDB\Driver\Monitoring\CommandFailedEvent::getDurationMicros
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Returns the command's duration in microseconds
Description
MongoDB\Driver\Monitoring\CommandFailedEvent::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.