Modification on senconds diff time function