Sign in
apache
/
cordova-osx
/
249f7dd2bcb3388f0d6679f037f5c5e9dc5e9daf
/
.
/
bin
/
node_modules
/
cordova-common
/
node_modules
/
cordova-registry-mapper
/
node_modules
/
tape
/
example
/
timing.js
blob: 0268dc78b3d10bf2eaad97b488421a2ccfa2d814 [
file
] [
log
] [
blame
]
var
test
=
require
(
'../'
);
test
(
'timing test'
,
function
(
t
)
{
t
.
plan
(
2
);
t
.
equal
(
typeof
Date
.
now
,
'function'
);
var
start
=
new
Date
;
setTimeout
(
function
()
{
t
.
equal
(
new
Date
-
start
,
100
);
},
100
);
});