void THISCLASS::AddStepStart() {
	// Take a measurement
	Event it;
	LapTime(&it, sType_StepStart, 0);
	Add(&it);

	// Update the frames per second
	if (mPreviousStep.mType == sType_StepStart) {
		double currentstepdistance = CalculateDuration(&mPreviousStep, &it);
		double w = 0.5;
		mStepDistance = mStepDistance * w + currentstepdistance * (1 - w);
	}

	// Set the previous step
	mPreviousStep = it;
}
Esempio n. 2
0
double MapFollowAnimation::GetDuration() const
{
  return CalculateDuration();
}
Esempio n. 3
0
 void CalculateAll() {
   CalculateDuration();
   CalculateLiftRate();
 }
float CalculateCurrentDuration(Task* task)
{
    return CalculateDuration(task, task->nbWorkersToAssign);
}