add timestamp in encoder interface
Merge pull request #394 from ruil2/encoder_update

add timestamp in encoder interface --- review request#138