Example #1
0
/**
 * Returns timer data.
 *
 * @param int $timer Valid timer resource.
 *
 * @return array Array with timer data.
 * @link https://github.com/tony2001/pinba_engine/wiki/PHP-extension#pinba_timer_get_info
 *
 * @example
 * <pre>
 * $data = pinba_timer_get_info($timerRes);
 * //$data == array(
 * //     "value" => 0.0213,
 * //     "tags" => array(
 * //         "foo" => "bar",
 * //     },
 * //      "started" => true,
 * //     "data"  => array('customData', 1, 2),
 * //);
 * </pre>
 */
function pinba_timer_get_info($timer)
{
    return pinba::timer_get_info($timer);
}