-
๋ชจ๋ 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; } });
- ์์
00_utils
Directory actions
More options
Directory actions
More options
00_utils
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
ย | ย | |||
ย | ย | |||