move addtime() macro to the header file