コード例 #1
0
void BioXASZebraTimeSeconds::updateValue()
{
	if (canMeasure() && !moveInProgress()) {
		double newValue = convertTimeValue(timeValue_->value(), timeUnits_->value(), Seconds);
		setValue(newValue);
	}
}
コード例 #2
0
void SamplingMetricBase::update(double dt)
{
	m_elapsedTime += dt;
	if (canMeasure(dt))
	{
		MeasurementEntryType newEntry;
		newEntry.first = m_elapsedTime;
		newEntry.second = performMeasurement(dt);
		m_measurementValues.push_back(newEntry);
		if (m_measurementValues.size() > m_maxNumberOfMeasurements)
		{
			m_measurementValues.pop_front();
		}

	}
}