BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / performance-now / test / scripts / delayed-call.coffee

delayed-call.coffee

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
delayed-call.coffee 358 B Download Raw
1#!/usr/bin/env ./node_modules/.bin/coffee
2
3###
4Expected output is a number above 350 and below 600.
5The time reported is relative to the time the node.js process was started
6this is approximately at `(Date.now() process.uptime() * 1000)`
7###
8
9delay = require "call-delayed"
10now = require "../../lib/performance-now"
11delay 250, -> console.log now().toFixed 3