setWhenMeasured function

Set the "when.measured" attribute