array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-serverheartbeatsucceededevent.getdurationmicros.php', 1 => 'MongoDB\\Driver\\Monitoring\\ServerHeartbeatSucceededEvent::getDurationMicros', 2 => 'Returns the heartbeat\'s duration in microseconds', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-serverheartbeatsucceededevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\ServerHeartbeatSucceededEvent', ), 'prev' => array ( 0 => 'class.mongodb-driver-monitoring-serverheartbeatsucceededevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\ServerHeartbeatSucceededEvent', ), 'next' => array ( 0 => 'mongodb-driver-monitoring-serverheartbeatsucceededevent.gethost.php', 1 => 'MongoDB\\Driver\\Monitoring\\ServerHeartbeatSucceededEvent::getHost', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/serverheartbeatsucceededevent/getdurationmicros.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::getDurationMicros

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::getDurationMicrosReturns the heartbeat's duration in microseconds

Опис

final public 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.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the heartbeat's duration in microseconds.

Помилки/виключення