code: function(timestamp) {
        int_timestamp = parseInt(timestamp);
        assert(int_timestamp >= last_timestamp, "Inconsistent timestamps.");
        last_timestamp = int_timestamp;
        distortion += distortion_per_entry;
        return int_timestamp / 1000 - distortion;
      }
docs: Parse functions.