Skip to content

Commit daf5dbe

Browse files
committed
add squeak vm version and current time
1 parent e4d596a commit daf5dbe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

benchmark/benchmark.js

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ window.onload = function() {
3737
return origFileClose.apply(this, arguments);
3838
});
3939

40+
if (!Date.now) {
41+
Date.now = function now() {
42+
return new Date().getTime();
43+
};
44+
}
45+
4046
function saveToLively(contents) {
4147
var address = (window.google &&
4248
google.loader &&
@@ -45,6 +51,8 @@ window.onload = function() {
4551
contents = navigator.userAgent + "\n" +
4652
address.city + "\n" +
4753
address.country + "\n" +
54+
Date.now() + "\n" +
55+
Squeak.vmVersion + "\n" +
4856
contents;
4957
var oReq = new XMLHttpRequest();
5058
oReq.open(

0 commit comments

Comments
 (0)