Searched refs:timeToCode (Results 1 – 5 of 5) sorted by relevance
15 import {timeToCode, TPTime, TPTimeSpan} from './time';18 expect(timeToCode(3)).toEqual('3s');19 expect(timeToCode(60)).toEqual('1m');20 expect(timeToCode(63)).toEqual('1m 3s');21 expect(timeToCode(63.2)).toEqual('1m 3s 200ms');22 expect(timeToCode(63.2221)).toEqual('1m 3s 222ms 100us');23 expect(timeToCode(63.2221111)).toEqual('1m 3s 222ms 111us 100ns');24 expect(timeToCode(0.2221111)).toEqual('222ms 111us 100ns');25 expect(timeToCode(0.000001)).toEqual('1us');26 expect(timeToCode(0.000003)).toEqual('3us');[all …]
64 export function timeToCode(sec: number): string { function88 return timeToCode(tpTimeToSeconds(time));
18 import {timeToCode} from '../common/time';98 m('td.flow-link', args, timeToCode(flow.dur)),
22 import {timeToCode, tpDurationToSeconds, tpTimeToCode} from '../common/time';368 builder.add('Delay', timeToCode(dur));
30 import {fromNs, timeToCode} from '../common/time';202 return timeToCode(fromNs(value));