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 https://github.com/D-Programming-Language/phobos/pull/1903 , which didn't attempt to unit test any of the examples.