-
Notifications
You must be signed in to change notification settings - Fork 0
/
microtimeexecution.php
41 lines (34 loc) · 1.05 KB
/
microtimeexecution.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Microtime Execution
*
* @package MicrotimeExecution
* @author Marco Bellomo
* @copyright 2020 Marco Bellomo
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: MicrotimeExecution
* Plugin URI: https://github.com/marcoBLotrek/Microtimexecution
* Description: This plugin prints the execution time of admin area
* Version: 0.0.1
* Author: Marco Bellomo
* Author URI: https://github.com/marcoBLotrek
* Text Domain: hello-world
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
function change_admin_footer(){
// $time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
echo ' <div style="Position:fixed;top: 90%;
left: 100%;
margin-left: -260px;
background-color: white;border:1px solid black;"> Execution Time : '.timer_stop().' seconds</div>';
}
add_filter('admin_print_footer_scripts', 'change_admin_footer',100);
/*
function your_function() {
echo 'This is inserted at the bottom';
}
add_action( 'wp_footer', 'your_function' );*/
?>