File tree Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -86,24 +86,6 @@ public function diagnostics() : void {
86
86
87
87
}
88
88
89
- public function microtime_diff (
90
- string $ start ,
91
- string $ end = null
92
- ) : float {
93
- if ( ! $ end ) {
94
- $ end = microtime ();
95
- }
96
-
97
- list ( $ start_usec , $ start_sec ) = explode ( ' ' , $ start );
98
- list ( $ end_usec , $ end_sec ) = explode ( ' ' , $ end );
99
-
100
- $ diff_sec = intval ( $ end_sec ) - intval ( $ start_sec );
101
- $ diff_usec = floatval ( $ end_usec ) - floatval ( $ start_usec );
102
-
103
- return floatval ( $ diff_sec ) + $ diff_usec ;
104
- }
105
-
106
-
107
89
/**
108
90
* Get info on plugin status.
109
91
*
Original file line number Diff line number Diff line change 2
2
3
3
namespace WP2Static ;
4
4
5
- use Exception ;
6
-
7
5
class Utils {
8
- /*
9
- * Takes either an http or https URL and returns a // protocol-relative URL
10
- *
11
- * @param string $start timer start
12
- * @param string $end timer end
13
- * @return float time between start and finish
14
- */
15
- public static function microtime_diff (
16
- string $ start ,
17
- string $ end = null
18
- ) : float {
19
- if ( ! $ end ) {
20
- $ end = microtime ();
21
- }
22
-
23
- list ( $ start_usec , $ start_sec ) = explode ( ' ' , $ start );
24
- list ( $ end_usec , $ end_sec ) = explode ( ' ' , $ end );
25
-
26
- $ diff_sec = intval ( $ end_sec ) - intval ( $ start_sec );
27
- $ diff_usec = floatval ( $ end_usec ) - floatval ( $ start_usec );
28
-
29
- return floatval ( $ diff_sec ) + $ diff_usec ;
30
- }
31
-
32
6
/*
33
7
* Adjusts the max_execution_time ini option
34
8
*
You can’t perform that action at this time.
0 commit comments