MCPcopy Create free account
hub / github.com/NobyDa/Script / time

Function time

JD-DailyBonus/JD_DailyBonus.js:1948–1951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1946 return console.log(`\n‼️${name}发生错误\n‼️名称: ${er.name}\n‼️描述: ${er.message}${JSON.stringify(er).match(/\"line\"/)?`\n‼️行列: ${JSON.stringify(er)}`:``}${resp&&resp.status?`\n‼️状态: ${resp.status}`:``}${body?`\n‼️响应: ${resp&&resp.status!=503?body:`Omit.`}`:``}`)
1947 }
1948 const time = () => {
1949 const end = ((Date.now() - start) / 1000).toFixed(2)
1950 return console.log('\n签到用时: ' + end + ' 秒')
1951 }
1952 const done = (value = {}) => {
1953 if (isQuanX) return $done(value)
1954 if (isSurge) isRequest ? $done(value) : $done()

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected