Track the duration of parts of your gulp tasks.
Useful, for example, when running a periodic watch-like task but not using
gulp.watch or gulp's task dependency system.
Creates a new pass-through duration stream. When this stream is closed, it will log the amount of time since its creation to your terminal.
Optionally, you can pass a
name to use when logging – defaults to
Resets the stream's "start time" to the current time. Use this in your pipeline to only track the duration after a certain event.
Here's a simple example:
var duration =var uglify =var concat =var gulp =gulp
And something a little less trivial:
var source =var uglify =var watchify =var gulp =gulp
MIT. See LICENSE.md for details.