Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\ServerDescription::getPortMongoDB\Driver\ServerDescription::getType>
^MongoDB\Driver\ServerDescriptionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\ServerDescription::getRoundTripTime

(mongodb >=1.13.0)

MongoDB\Driver\ServerDescription::getRoundTripTime — Returns the server's round trip time in milliseconds

Description

final public function MongoDB\Driver\ServerDescription::getRoundTripTime(): ?int

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

Parameters

This function has no parameters.

Return Values

Returns the server's round trip time in milliseconds.

Errors/Exceptions

See Also


<MongoDB\Driver\ServerDescription::getPortMongoDB\Driver\ServerDescription::getType>
^MongoDB\Driver\ServerDescriptionLast updated: Mon, 26 Oct 2026