Make we should put this function in `utils`? There's already a timing context manager. Perhaps a new file `mdtraj/utils/contextamangers.py` is warranted, and then both functions could be imported into the main `utils` namespace.