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.

This is intended to replace pull# 1903, which didn't attempt to unit test any of the examples.