Optimized log display time; if-case around commitChildren loop.

Signed-off-by: Fredrik Svensson <fresve85@gmail.com>