Normalized on operating in float seconds rather than milliseconds.
This commit is contained in:
1 parent
624e282905
commit
1e75033f25
8 files changed
+15
-19
No files matched your search
@@ -37,13 +37,9 @@ class Toolbar_Manager {
|
||||
|
||||
global $timestart;
|
||||
|
||||
$start = $timestart * 1000;
|
||||
$end = microtime( true ) * 1000;
|
||||
$total = $end - $start;
|
||||
|
||||
$wp_admin_bar->add_node( [
|
||||
'id' => 'laps',
|
||||
'title' => sprintf( 'Lap: %ss', round( $total / 1000, 3 ) ),
|
||||
'title' => sprintf( 'Lap: %ss', round( microtime( true ) - $timestart, 3 ) ),
|
||||
] );
|
||||
|
||||
$wp_admin_bar->add_node( [
|
||||
|
||||
Reference in new issue
Block a user