private long getTime() {
        switch (type) {
            case WALL_TIME:
                return getWallTime();

            case CPU_TIME:
                return getCpuTime();

            case USER_TIME:
                return getUserTime();

            default:
                break;
        }
        return getCpuTime();
    }