APISonar


com.didichuxing.doraemonkit.kit.timecounter.bean.CounterInfo.time

> com > didichuxing > doraemonkit > kit > timecounter > bean > CounterInfo > time
com APIs didichuxing APIs doraemonkit APIs kit APIs timecounter APIs bean APIs CounterInfo APIs time APIs

Example 1
private void load() {
        List<CounterInfo> infos = new ArrayList<>(TimeCounterManager.get().getHistory());
        infos.add(0, TimeCounterManager.get().getAppSetupInfo());
        Collections.sort(infos, new Comparator<CounterInfo>() {
            @Override
            public int compare(CounterInfo lhs, CounterInfo rhs) {
                return Long.valueOf(rhs.time)
                        .compareTo(lhs.time);
            }
        });
        mAdapter.setData(infos);
    }
Example 2
private CounterInfo mCounterInfo = new CounterInfo();

    public void end() {
        mCounterInfo.title = "App Setup Cost";
        mCounterInfo.totalCost = System.currentTimeMillis() - mStartTime;;
        mCounterInfo.type = CounterInfo.TYPE_APP;
        mCounterInfo.time = System.currentTimeMillis();
    }