Added time execution calculation.

You can disable mail report of script execution time by commenting lines 28, 131, 132 and 133.