feat: show megahal init time

This commit is contained in:
2024-08-06 00:07:53 +03:00
parent 08e6a4f7d2
commit 2b6215cb4b

View File

@@ -16,7 +16,10 @@ let totalMsgCount = 0
export const CHATTER_REPLY_CHANCE = 0.02
logger.log('Initializing MegaHAL')
const start = Date.now()
export const megahal = new MegaHAL()
const duration = Date.now() - start
logger.log('MegaHAL initialized in', duration, 'ms')
loadBrain()
async function loadBrain() {