Home/
Manual/
monitoring / serverheartbeatfailedevent/ MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getDurationMicros
MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getDurationMicros
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Returns the heartbeat's duration in microseconds
Description
MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getDurationMicros(): int
The heartbeat'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 heartbeat's duration in microseconds.