Single chip timer