UNPKG

webrtc-samples

Version:

Project checking for WebRTC GitHub samples repo

13 lines (12 loc) 318 B
function trace(text) { // This function is used for logging. if (text[text.length - 1] === '\n') { text = text.substring(0, text.length - 1); } if (window.performance) { var now = (window.performance.now() / 1000).toFixed(3); console.log(now + ': ' + text); } else { console.log(text); } }