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.