Home
last modified time | relevance | path

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

/external/perfetto/ui/src/common/
Dtime_unittest.ts15 import {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.ts44 export function timeToCode(sec: number) { function
/external/perfetto/ui/src/frontend/
Dslice_panel.ts19 import {timeToCode} from '../common/time';
47 m('td', `${timeToCode(sliceInfo.ts)}`)),
50 m('td', `${timeToCode(sliceInfo.dur)}`)),
90 timeToCode(
105 timeToCode(
Dthread_state_panel.ts18 import {timeToCode} from '../common/time';
42 timeToCode(attrs.ts - globals.state.traceTime.startSec)
44 m('tr', m('th', `Duration`), m('td', `${timeToCode(attrs.dur)}`)),