Lines Matching refs:elapsed
247 elapsed := time.Now().Sub(startTime)
249 return elapsed, expected
370 elapsed := time.Since(startTime)
384 if !(elapsed >= expectElapsedMin) {
385 t.Errorf("#%d: got %v; want >= %v", i, elapsed, expectElapsedMin)
386 } else if !(elapsed <= expectElapsedMax) {
387 t.Errorf("#%d: got %v; want <= %v", i, elapsed, expectElapsedMax)
404 elapsed = time.Now().Sub(startTime)
405 if elapsed > 100*time.Millisecond {
406 t.Errorf("#%d (cancel): got %v; want <= 100ms", i, elapsed)
476 elapsed := time.Now().Sub(startTime)
484 if !(elapsed >= expectMin) {
485 t.Errorf("#%d: got %v; want >= %v", i, elapsed, expectMin)
487 if !(elapsed <= expectMax) {
488 t.Errorf("#%d: got %v; want <= %v", i, elapsed, expectMax)