Commit f39fbdc5 by ken

试试看吧

parent d3d94886
...@@ -23,11 +23,11 @@ function run() { ...@@ -23,11 +23,11 @@ function run() {
total2 += ((after - before) - total / time) * ((after - before) - total / time); total2 += ((after - before) - total / time) * ((after - before) - total / time);
// console.log('平均值:' + (total / time) + ' 标准差:' + Math.sqrt(total2 / time)); // console.log('平均值:' + (total / time) + ' 标准差:' + Math.sqrt(total2 / time));
// console.log(data); // console.log(data);
if (lastData && data.timeStamp > lastTimestamp) { if (lastData && data.timestamp > lastTimestamp) {
if (JSON.stringify(lastData) != JSON.stringify(data)) { if (JSON.stringify(lastData) != JSON.stringify(data)) {
console.log("diff@" + data.timestamp) console.log("diff@" + data.timestamp)
} }
lastTimestamp = data.timeStamp; lastTimestamp = data.timestamp;
} }
lastData = data; lastData = data;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment