Timing   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A microTimestamp() 0 7 1
1
<?php
2
3
namespace ElegantMedia\PHPToolkit;
4
5
class Timing
6
{
7
	/**
8
	 * Get the micro-timestamp of current time.
9
	 *
10
	 * @return string
11
	 */
12
	public static function microTimestamp()
13 6
	{
14
		// get microtime of file generation to preserve migration sequence
15
		$time = explode(' ', microtime());
16 6
17
		// change the format to 2008_07_14_010813.98232
18
		return date('Y_m_d_His', (int) $time[1]) . '.' . substr((string) $time[0], 2, 5);
19 6
	}
20
}
21