added timedOp function

timedOp function added in a separate py file