implementation and usage of time difference calculation module