Watch executes programs periodically, making it perfect for use cases like tailing directories.
You can use console.time and console.timeEnd to measure the time it takes to do stuff in JavaScript