Time Function

Added pendulum motion as time function