#
whycq
2024-09-23 f9d543495a262082fd585aec29bed1fb8fc327fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let sec = 180
    
const startStop = () => {
    let inter = setInterval(()=> {
        sec--;
        if (sec == 0) {
            clearInterval(inter)
            sec = 180
        }
    },1000)
}
const checkSec = () => {
    return sec
}
module.exports = {
    startStop,
    sec,
    checkSec
}