Sentsleeptime is execute in send_part function, right after sms is sent,
but run_eventhandler execute with SENT argument after sleep time at sentsleeptime.
As a consequence, sent time and sending time in sent file is incorrect (right time+sentsleeptime).

It should be move sentsleeptime code to parent sending loop, after run_eventhandler(SENT).