Exemplo n.º 1
0
 static function timeInit()
 {
     if (!defined('MAXBUTTONS_BENCHMARK') || MAXBUTTONS_BENCHMARK !== true) {
         return;
     }
     self::$timer = microtime(true);
     if (is_admin()) {
         add_filter("admin_footer", array('maxUtils', "showTime"), 100);
     } else {
         add_action("wp_footer", array('maxUtils', "showTime"));
     }
 }