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; }
double MapFollowAnimation::GetDuration() const { return CalculateDuration(); }
void CalculateAll() { CalculateDuration(); CalculateLiftRate(); }
float CalculateCurrentDuration(Task* task) { return CalculateDuration(task, task->nbWorkersToAssign); }