Skip to content

Instantly share code, notes, and snippets.

@vidyuthd
Created February 20, 2013 18:52
Show Gist options
  • Save vidyuthd/4998034 to your computer and use it in GitHub Desktop.
Save vidyuthd/4998034 to your computer and use it in GitHub Desktop.
Grunt StopWatch
Need a handle to find out time taken by individual or group or all tasks done by grunt. Currenlty there is no way to find out the time taken by individual task since each individual task is invoked by grunt and we don't have any callback or handle on it to invoke custom methods, unless we write a custom taks ourself and insert after every task and then printing the time taken by using process.hrtime , though some of the tasks do print time taken. For this proper way should be Grunt should emit events after completing tasks, the level at which it should be generated could be brainstormed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment