public Timeout getTimeoutLeft ( ) { final long left = getTimeLeft ( ) ; if ( left != 0 ) return new Timeout ( left , TimeUnit . MILLISECONDS ) ; else return Timeout . ZERO ; }
Determines the amount of time leftuntil the deadline and returns it as a timeout