Documentation: Add examples for time related macros.

Fixes #5376