code: function instrumentFunction( func, entry ) {
     return ( ...args ) => {
        const start = win.performance.now();
        const result = func( ...args );
        const time = win.performance.now() - start;
  
        ++entry.count;
        entry.time += time;
  
        return result;
     };
  }
docs: ////////////////////////////////////////////////////////////////////////////////////////////////////////////