Implement encode/decode times using UserTiming API