MongoDB\Driver\ServerDescription::getRoundTripTime
(mongodb >=1.13.0)
MongoDB\Driver\ServerDescription::getRoundTripTime — Returns the server's round trip time in milliseconds
Description
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
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\Driver\Server::getLatency() - Returns the latency of this server in milliseconds
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
