aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std/datetime/stopwatch.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/datetime/stopwatch.d')
-rw-r--r--libphobos/src/std/datetime/stopwatch.d5
1 files changed, 1 insertions, 4 deletions
diff --git a/libphobos/src/std/datetime/stopwatch.d b/libphobos/src/std/datetime/stopwatch.d
index 48e025b..5d2a980 100644
--- a/libphobos/src/std/datetime/stopwatch.d
+++ b/libphobos/src/std/datetime/stopwatch.d
@@ -403,10 +403,7 @@ Duration[fun.length] benchmark(fun...)(uint n)
void f0() nothrow {}
void f1() nothrow { auto b = to!string(a); }
auto r = benchmark!(f0, f1)(1000);
- version (GNU)
- assert(r[0] >= Duration.zero);
- else
- assert(r[0] > Duration.zero);
+ assert(r[0] >= Duration.zero);
assert(r[1] > Duration.zero);
assert(r[1] > r[0]);
assert(r[0] < seconds(1));