startDebugTimer = name => {
  const start = Date.now();
  return {
    end: () => {
      const duration = Date.now() - start;
      log(`${name} took ${duration}ms`);
    },
  };
}
@param {string} name @return {{end(): void}}