php8.5
Home/ Manual/ driver / serverdescription/ MongoDB\Driver\ServerDescription::getRoundTripTime

MongoDB\Driver\ServerDescription::getRoundTripTime

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns the server's round trip time in milliseconds

Description

MongoDB\Driver\ServerDescription::getRoundTripTime(): int|null

Returns the server's round trip time in milliseconds. This is the client's measurement of the duration of a hello command.

Parameters Parameters

Return Values

Returns the server's round trip time in milliseconds.

Errors/Exceptions

See Also

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