php8.5
Home/ Manual/ monitoring / serverheartbeatsucceededevent/ MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::getDurationMicros

MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::getDurationMicros

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns the heartbeat's duration in microseconds

Description

MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::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.

Errors/Exceptions

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