diff options
Diffstat (limited to 'it.class')
| -rw-r--r-- | it.class | 17 | 
1 files changed, 16 insertions, 1 deletions
| @@ -4,7 +4,7 @@  **  **	ITools - the Internet Tools Library  ** -**	Copyright (C) 1995-2004 by the ITools Authors. +**	Copyright (C) 1995-2006 by the ITools Authors.  **	This program is free software; you can redistribute it and/or  **	modify it under the terms of either the GNU General Public License  **	or the GNU Lesser General Public License, as published by the Free @@ -45,6 +45,21 @@ function log($name /* ... */)  /** + * Store timings for appending to log/timer_log-* in auto_append.php + */ +function timerlog($label = '') +{ +	if ($GLOBALS['debug_timerlog']) +	{ +		$s = $GLOBALS['ULTRATIME']; +		$e = gettimeofday(); +		$msec= ($e['sec'] - $s['sec']) * 1000 + ($e['usec'] - $s['usec']) / 1000; +		$GLOBALS['ULTRATIMERLOG'] .= sprintf(" %s:%d", $label, $msec); +	} +} + + +/**   * Send error report either to browser (on devel/twin machines) or by email to .diffnotice guys   * @parma $title (optional) error title, one line   * @param $body (optional) error body, multiline |