The commit also corrects unit of encoding from microsecond to milisecond. Change-Id: I030108e90f89f33dfad2d092dc8991db81979715