fippo / rtcstats

MIT License
129 stars 41 forks source link

ensure timestamp is in the same place in all events #82

Closed fippo closed 5 years ago

ggarber commented 5 years ago

Maybe it would be better to add that logic in a single place, the trace method:

function trace() {
    var args = Array.prototype.slice.call(arguments);
    if (args.length < 3)
      args.push(undefined);
    args.push(new Date().getTime());
....