Passed
Push — master ( 777422...99a655 )
by Dmytro
03:24 queued 11s
created

tests/polyfills/performance.polyfill.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 9
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
mnd 0
bc 0
fnc 2
dl 0
loc 9
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A performance.polyfill.js ➔ now 0 3 2
1
(function(){
2
      var nowOffset = Date.now();
3
      
4
        global.performance = { };
5
6
        global.performance.now = function now(){
7
        return Date.now() - nowOffset;
8
      }
9
})();