modify timestamp_assert macro to support more compiler