2020 · 21 citations · 0 references
ComputingComputer EngineeringComputer ScienceComputer-assisted InstructionInstruction In Higher EducationProgramming LanguagesComputer Science EducationObject-oriented ProgrammingComputer Science CurriculumEducational Programming LanguagesGraduate CurriculumObject-oriented Programming EducationProgramming ConceptsProgramming InstructionUndergraduate Computer Science Education
Note that Tstart in the above routine is set equal to the beginning of the computation (value of Timer at the beginning of the computation). Also, t (time in equations) is set to zero. The maximum allowable value of t is 20S and it is incremented by 0.02 seconds. Note that most personal computers have a time resolution of 20ms (0.02 s). The loop after time increment statement (t=t+0.02) is a dummy loop (does nothing other than kill the time) which keeps looping until the difference between the current computational time and starting time becomes equal or more than the time in the code for real-time animation. The following example illustrates the application of this time routine in Visual Basic programs.