function measure(f) {
  start = log();
  f();
  end = log();
  return end.ms - start.ms;
}
// Calculate the milliseconds it takes to run f
Calculate the milliseconds it takes to run f
Calculate the milliseconds it takes to run f
function measure(f) {
  start = log();
  f();
  end = log();
  return end.ms - start.ms;
}
function measure ( f ) { start = log ( ) ; f ( ) ; end = log ( ) ; return end . ms - start . ms ; }
Calculate the milliseconds it takes to run f
Calculate the milliseconds it takes to run f