Move cpu-time monitoring to poll library.