Exemplo n.º 1
0
/**
 * Creates and starts new timer.
 *
 * @param array $tags An array of tags and their values in the form of "tag" => "value". Cannot contain numeric indexes for obvious reasons.
 * @param array $data Optional array with user data, not sent to the server.
 *
 * @return integer Always returns new timer resource.
 * @link https://github.com/tony2001/pinba_engine/wiki/PHP-extension#pinba_timer_start
 *
 * @example
 * <pre>
 * $time = pinba_timer_start(array('tag' => 'value'), array('customData', 1, 2));
 * </pre>
 */
function pinba_timer_start(array $tags, array $data = array())
{
    return pinba::timer_start($tags, $data);
}