Merge pull request #600 from jitsi/performanceTime_format

Fixes time console.log text
This commit is contained in:
damencho 2016-04-10 12:55:58 -05:00
commit 702eb8cbbe
1 changed files with 3 additions and 2 deletions

View File

@ -159,9 +159,10 @@ SmallVideo.createStreamElement = function (stream) {
element.id = SmallVideo.getStreamElementID(stream);
element.onplay = function () {
var now = APP.performanceTimes["video.render"]
var type = (isVideo ? 'video' : 'audio');
var now = APP.performanceTimes[type + ".render"]
= window.performance.now();
console.log("(TIME) Render " + (isVideo ? 'video' : 'audio') + ":\t",
console.log("(TIME) Render " + type + ":\t",
now);
};