Capture duration in capacity tests

Fixes https://github.com/numenta/nupic.research/issues/92.