APISonar


org.apache.usergrid.chop.api.TimeChop.time

> org > apache > usergrid > chop > api > TimeChop > time
org APIs apache APIs usergrid APIs chop APIs api APIs TimeChop APIs time APIs

Example 1
private final TimeChop timeChop;

    public int getPercentCompleted() {
        double percent = ( double ) ( System.currentTimeMillis() - getStartTime() ) / ( double ) timeChop.time();
        return ( int ) Math.floor( Math.min( 100, percent * 100 ) );
    }