Added getTimeDiff method