useful comment

This commit is contained in:
Andrea Fioraldi 2021-03-05 16:08:49 +01:00
parent b048ddf470
commit 03a8f380f0

View File

@ -62,6 +62,7 @@ where
I: Input + HasLen, I: Input + HasLen,
{ {
fn compute(entry: &mut Testcase<I>) -> Result<u64, Error> { fn compute(entry: &mut Testcase<I>) -> Result<u64, Error> {
// TODO maybe enforce entry.exec_time().is_some()
Ok(entry.exec_time().map_or(1, |d| d.as_millis()) as u64 * entry.cached_len()? as u64) Ok(entry.exec_time().map_or(1, |d| d.as_millis()) as u64 * entry.cached_len()? as u64)
} }
} }