parameters: (context, steps, initialSteps)
return_statement: return elapsed.seconds + elapsed.microseconds*1e-6
docstring: Integrate a Context for a specified number of steps, then return how many seconds it took.
docstring_summary: Integrate a Context for a specified number of steps, then return how many seconds it took.
docstring_tokens: Integrate a Context for a specified number of steps then return how many seconds it took .
function: def timeIntegration(context, steps, initialSteps):
      """Integrate a Context for a specified number of steps, then return how many seconds it took."""
      context.getIntegrator().step(initialSteps) # Make sure everything is fully initialized
      context.getState(getEnergy=True)
      start = datetime.now()
      context.getIntegrator().step(steps)
      context.getState(getEnergy=True)
      end = datetime.now()
      elapsed = end-start
      return elapsed.seconds + elapsed.microseconds*1e-6
function_tokens: def timeIntegration ( context , steps , initialSteps ) : context . getIntegrator ( ) . step ( initialSteps ) # Make sure everything is fully initialized context . getState ( getEnergy = True ) start = datetime . now ( ) context . getIntegrator ( ) . step ( steps ) context . getState ( getEnergy = True ) end = datetime . now ( ) elapsed = end - start return elapsed . seconds + elapsed . microseconds * 1e-6