Function timeDiff optimized and `splitTimeString' removed