aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 8cb3a930a..d0b2733c0 100644
--- a/include/text.php
+++ b/include/text.php
@@ -489,6 +489,10 @@ function dlogger($msg,$level = 0) {
}}
+function profiler($t1,$t2,$label) {
+ if(file_exists('profiler.out') && $t1 && t2)
+ @file_put_contents('profiler.out', sprintf('%01.4f %s',$t2 - $t1,$label) . "\n", FILE_APPEND);
+}
if(! function_exists('activity_match')) {