refactor compute_relative_time
Merge pull request #11 from dongweiming/modify_compute_relative_time

refactor compute_relative_time