added correct timing code to pc-main