src/counters/PerformanceNow.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 7
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A PerformanceNow.bench 0 3 1
1
import Timer from './Timer';
2
3
export default class PerformanceNow extends Timer {
4
    bench() {
5
        return performance.now();
0 ignored issues
show
Bug introduced by
The variable performance seems to be never declared. If this is a global, consider adding a /** global: performance */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
    }
7
}
8