add timing only if switch is on