[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/34: Improve DBG , add stopwatch : timer_st
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 05/34: Improve DBG , add stopwatch : timer_start and timer_show |
Date: |
Wed, 17 Jan 2024 12:54:05 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 3c570c042b91e50d042e4806472a0509dfb93f93
Author: Dany wm <danydb@noalyss.eu>
AuthorDate: Thu Dec 7 21:41:12 2023 +0100
Improve DBG , add stopwatch : timer_start and timer_show
---
include/lib/dbg.php | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/include/lib/dbg.php b/include/lib/dbg.php
index b5ac58d43..a0570b104 100644
--- a/include/lib/dbg.php
+++ b/include/lib/dbg.php
@@ -134,5 +134,20 @@ EOF;
EOF;
return $r;
}
+
+ public static function timer_start()
+ {
+ global $timer;
+ $timer=hrtime(true);
+ }
+ public static function timer_show()
+ {
+ global $timer;
+ // $delta=$timer-microtime(true) ;
+ echo '<span style="font-size:80%;color:navy;background:lightgreen">';
+ echo _("Temps écoulé : ");
+ echo (hrtime(true)-$timer)/1e+6;
+ echo '</span>';
+ }
}
?>
- [Noalyss-commit] [noalyss] branch devel updated (ead8d5f23 -> edc0a3f23), dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 02/34: FIX : default to use https, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 07/34: PRINTGL Main Ledger (GL) improve performance and code prepare the SQL , better filter for accounting, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 06/34: Improve DatabaseCore : fetch_all, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 05/34: Improve DBG , add stopwatch : timer_start and timer_show,
dwm <=
- [Noalyss-commit] [noalyss] 04/34: FIX : when taken from git NOALYSS_VERSION is undefined, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 19/34: Merge branch 'devel-ods' into devel, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 23/34: Bug Fiche Option, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 32/34: DEV - TEST : new file to see local variables, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 21/34: Task #0002327: Balance : indiqué si le solde est correct débit / crédit, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 11/34: Task 0002128: Clôture comptabilité française, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 13/34: Acc OD : cosmetic, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 17/34: Get empty upgrade.sql, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 01/34: FIX : when taken from git NOALYSS_VERSION is undefined, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 18/34: Bug #0002322: Impression Suivi, dwm, 2024/01/17