Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function logTime(time, message) {
const stamp = time.toTimeString().slice(0, 8);
console.error(`[${gray(stamp)}] ${message}`);
}