Add G_LOG_DURATION() helper

Xavier Claessens requested to merge xclaesse/glib:log-duration into master

This add helper macros to log time spent in a function or code block. It is especially useful when used with g_auto() to automatically log time elapsed when leaving the code block.

Based on idea from Nicolas Dufresne.

Merge request reports