Normalized on operating in float seconds rather than milliseconds.

This commit is contained in:
Andrey Savchenko committed 2018-02-22 13:14:15 +02:00
1 parent 624e282905
commit 1e75033f25
8 files changed
+15 -19

No files matched your search

+1 -5
View File
@@ -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( [