Actually, this is the right calculation (thanks for reminding me): def returnedtooEarly(startNs: Long, finishNs: Long, timeoutNs: Long) = timeoutNs.toDouble / (finishNs - startNs) <= 0.75d