adding stopwatch function - gettime and added imap timeout support...

so imap_fetch has a timeout.