Comparative Analysis of Simulation Time in Nonlinear and Harmonically Excited Pendulum and Duffing Oscillators