| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
모듈 import
const TimerUtils = require('상대경로/TimerUtils.js');checkTimer : Date 객체 사용
let timer = TimerUtils.checkTimer('테스트 명');
timer.start();
// 측정할 함수 기입
timer.stop();const TimerUtils = require('../../_initial/00_utils/TimerUtils.js');
let timer = TimerUtils.checkTimer('스택 시간 테스트');
let str = ''
timer.start();
for (let i = 0; i < 10000000; i++) {
str += i;
}
timer.stop();checkTimerFunction : console.time 함수 사용
TimerUtils.checkTimerFunction('측정할 함수명');const TimerUtils = require('../../_initial/00_utils/TimerUtils.js');
TimerUtils.checkTimerFunction(() => {
let str = ''
for (let i = 0; i < 10000000; i++) {
str += i;
}
});| Back | FazBrowse Home | New Git URL |