public static long toEndTime ( Clock clock , Object timeout ) { Timespan t = toTimespan ( timeout ) ; if ( t == null ) return 0 ; if ( clock == null ) clock = SystemClock . INSTANCE ; if ( t . getDurationInMilliseconds ( ) == 0 ) return 0 ; return t . futureTimeMillis ( clock ) ; }
Computes the end time = now + timeout