Home
last modified time | relevance | path

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

/external/perfetto/ui/src/common/
Dtime_unittest.ts15 import {TimeSpan, timeToCode} 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.ts57 export function timeToCode(sec: number) { function
/external/perfetto/ui/src/frontend/
Dcounter_panel.ts17 import {fromNs, timeToCode} from '../common/time';
39 m('td', `${timeToCode(counterInfo.startTime)}`)),
48 m('td', `${timeToCode(fromNs(counterInfo.duration))}`)),
Dslice_panel.ts20 import {timeToCode, toNs} from '../common/time';
64 m('td', `${timeToCode(sliceInfo.ts)}`)),
67 m('td', `${timeToCode(sliceInfo.dur)}`)),
130 timeToCode(
144 timeToCode(
Dthread_state_panel.ts18 import {timeToCode, toNs} from '../common/time';
41 m('td', `${timeToCode(threadState.ts)}`)),
46 `${timeToCode(threadState.dur)} `,
Dchrome_slice_panel.ts19 import {timeToCode, toNs} from '../common/time';
137 builder.add('Start time', timeToCode(sliceInfo.ts));
141 timeToCode(sliceInfo.dur));
Dheap_profile_panel.ts25 import {timeToCode} from '../common/time';
120 `Snapshot time: ${timeToCode(heapDumpInfo.ts)}`),