Check for CMD_DURATION before calling __format_time
Check for CMD_DURATION before calling __format_time

The `CMD_DURATION` variable has no value when first opening a shell session, therefore we check if it's been initialized before passing it to `__format_time`.
rafaelrinaldi/pure