improved the performance monitor system, added a kill switch to stop execution after a desired amount of seconds