Sign in
apache
/
incubator-marvin
/
562c94ed9723fa8b5f2c33ad9615469214ec0690
/
.
/
PoCs
/
nodejs_poc
/
node_modules
/
tape
/
example
/
timing.js
blob: 614c1441854eaa01f84dde168a6f065fe47440a2 [
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
);
});