dist/bbn.js
/**
     * Starts a timer and gives it a name.
     * @method   startChrono
     * @global   
     * ``` javascript
     * bbn.fn.startChrono('myChrono');
     * ```
     * @memberof bbn.fn
     * @returns 
     */
Starts a timer and gives it a name.
Starts a timer and gives it a name .
startChrono(name)
    {
      let now = (new Date()).getTime();
      let h1 = 3600*1000;
      if (_private.length) {
        bbn.fn.each(_private, (t, n) => {
          if (now - t > h1) {
            delete _private[n];
          }
        });
        now = (new Date()).getTime();
      }
      _private[name] = now;
    }
startChrono ( name ) { let now = ( new Date ( ) ) . getTime ( ) ; let h1 = 3600 * 1000 ; if ( _private . length ) { bbn . fn . each ( _private , ( t , n ) => { if ( now - t > h1 ) { delete _private [ n ] ; } } ) ; now = ( new Date ( ) ) . getTime ( ) ; } _private [ name ] = now ; }
Starts a timer and gives it a name.
Starts a timer and gives it a name .