millisecondsBeforeExpiry = Math.round(1000d * param.doubleValue());
}
else {
millisecondsBeforeExpiry = 1000 * param.longValue();
}
timeDelta = new ExprTimePeriodEvalDeltaConstMsec(millisecondsBeforeExpiry);
}
if (timeDelta.deltaMillisecondsAdd(0) < 1) {
throw new ViewParameterException(viewName + " view requires a size of at least 1 msec");
}
return timeDelta;