def store_sample(self, value): '''Store a value and the current time into the trace.''' self.append(Sample(now(), copy(value)))