Commit 98da192d authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Assert that time dilation is positive non-zero (#7011)

Q: What happens if we set time dilation to zero?
A: It would be bad.
parent 3912ecbe
......@@ -23,6 +23,7 @@ double _timeDilation = 1.0;
/// to ensure that time stamps seen by consumers of the scheduler binding are
/// always increasing.
set timeDilation(double value) {
assert(value > 0.0);
if (_timeDilation == value)
return;
// We need to resetEpoch first so that we capture start of the epoch with the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment