added explicit phase methods to timer. Added context member to timer and removed unnecessary ctx arg to runsim