UNPKG

johnny-five

Version:

The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, pcDuino3, Raspberry Pi, Particle/Spark Core & Photon, Tessel 2, TI Launchpad and more!

7 lines (6 loc) 128 B
module.exports = { nano: function(ns) { var start = process.hrtime(); while (process.hrtime() < start + ns) {} } };