All files / src/functions/performance get.seconds.from.ts

80% Statements 4/5
100% Branches 0/0
0% Functions 0/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9    1x   1x   1x 1x  
'use strict';
 
import getHrtimeAsNumber from './get.hrtime.as.number';
 
export const NS_PER_SEC: number = 1e9;
 
const getSecondsFrom = (start: number): number => Number(getHrtimeAsNumber() - start) / NS_PER_SEC;
export default getSecondsFrom;