Add time option to build command

This replaces and updates #97 by @cpetschnig, which failed due to the upgrade to RSpec 3, and an increase in code complexity.