Timer
μκ°μ μΈ‘μ νλ νμ΄λ¨Έ κΈ°λ₯μ μ 곡νλ λͺ¨λ.
λ©μλλ€
.start()
νμ΄λ¨Έλ₯Ό μμνλ ν¨μ.
.pause()
νμ΄λ¨Έλ₯Ό μ€μ§νλ ν¨μ.
.resume()
μ μ§ μνμΈ νμ΄λ¨Έλ₯Ό λ€μ μμνλ ν¨μ.
.reset()
νμ΄λ¨Έλ₯Ό μ΄κΈ°ννλ ν¨μ.
.getTime()
.getTime()
: float
νΈμΆ μμ νμ΄λ¨Έ μκ° κ°μ λ°νν©λλ€. κ°μ λ¨μλ μ΄(sec)μ λλ€.
Example
const timer = new REDBRICK.Timer();
timer.start();
timer.pause();
timer.resume();
timer.reset();
const currentTime = timer.getTime();
console.log(currentTime);