Fix issue 12067.

Note that the measureTime examples do not use documented unittest
blocks, because that doesn't work when the documentation is split out
into a separate version(StdDDoc) section.
Merge pull request #1907 from jmdavis/12067

Fix issue 12067.