Home
last modified time | relevance | path

Searched refs:timeToCode (Results 1 – 5 of 5) sorted by relevance

/external/perfetto/ui/src/common/
Dtime_unittest.ts15 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 …]
Dtime.ts64 export function timeToCode(sec: number): string { function
88 return timeToCode(tpTimeToSeconds(time));
/external/perfetto/ui/src/frontend/
Dflow_events_panel.ts18 import {timeToCode} from '../common/time';
98 m('td.flow-link', args, timeToCode(flow.dur)),
Dchrome_slice_panel.ts22 import {timeToCode, tpDurationToSeconds, tpTimeToCode} from '../common/time';
368 builder.add('Delay', timeToCode(dur));
Dpivot_table.ts30 import {fromNs, timeToCode} from '../common/time';
202 return timeToCode(fromNs(value));