add timestamp in encoder interface