[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/34: Improve DBG , add stopwatch : timer_st
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 03/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 fc4ac725d0a65397ca79554161d449e6f9107530
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] 08/34: OPTION_CARD : Correct options for FollowUp, (continued)
- [Noalyss-commit] [noalyss] 08/34: OPTION_CARD : Correct options for FollowUp, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 16/34: Task 2128 : Ouverture et cloture toujours visible, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 20/34: Merge branch 'devel-andromeda' into devel, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 28/34: Task 0002128: Clôture comptabilité française Réécriture op. ouverture et cloture, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 30/34: Get empty upgrade.sql, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 31/34: PRINT properly action, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 33/34: Task #2323 : follow-up correct depending action + cosmetic, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 09/34: Bug Fiche Option, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 12/34: Task 0002128: Clôture comptabilité française, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 15/34: Adaptation PHPUNIT, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 03/34: Improve DBG , add stopwatch : timer_start and timer_show,
dwm <=
- [Noalyss-commit] [noalyss] 10/34: PHP8.1 compatibility, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 14/34: Task 0002128: Clôture comptabilité française Réécriture op. ouverture et cloture, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 22/34: OPTION_CARD : Correct options for FollowUp, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 24/34: PHP8.1 compatibility, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 25/34: Task 0002128: Clôture comptabilité française, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 26/34: Task 0002128: Clôture comptabilité française, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 27/34: Acc OD : cosmetic, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 29/34: Adaptation PHPUNIT, dwm, 2024/01/17
- [Noalyss-commit] [noalyss] 34/34: Merge, dwm, 2024/01/17