Fixes time console.log text

This commit is contained in:
hristoterezov 2016-04-10 12:25:37 -05:00
parent 26443b6d72
commit ddf39a20b8
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);
};