<?php
    
/**
    * o------------------------------------------------------------------------------o
    * | This package is dual licensed as GPL and a commercial license.               |
    * | If you use the code commercially (or if you don't want to be restricted by   |
    * | the GPL license), you will need the commercial license. It's only £49 (GBP - |
    * | roughly $98 depending on the exchange rate) and helps me out a lot. Thanks.  |
    * o------------------------------------------------------------------------------o
    *
    * © Copyright Richard Heyes
    */

    
require_once('UserAgent.php');

    
$before  = microtime();
    
$browser = GetUserAgent($ua = "Bloglines/3.1 (http://www.bloglines.com; 76 subscribers)");
    
$after   = microtime();
    
    
$before = (int)$before + substr($before, strpos(' ', $before));
    
$after  = (int)$after + substr($after, strpos(' ', $after));

    echo
'Time taken: ' . ($after - $before);

    
pd($ua);
    
pdd($browser);
?>