haoyunfeix / myTools

1 stars 0 forks source link

ll #9

Open haoyunfeix opened 4 years ago

haoyunfeix commented 4 years ago
    let b = performance.now() - a;
    count++;
    if ( count < 50) {
      SUM += b;
    }   
    else if (count = 50) {
      let perf = SUM / 50; 
      console.log(perf);
      SUM = 0;
      count = 0;
    }   
    //console.log(performance.now() - a);
    input.dispose();