In a structure with a variable valve timing mechanism which varies an
opening-and-closing timing of an intake valve and/or an exhaust valve due
to a rotational phase of a camshaft with respect to a crankshaft of an
internal combustion engine being varied, the rotational phase is detected
in an arbitrary timing regardless of a rotational period of the camshaft,
and the variable valve timing mechanism is controlled on the basis of the
detected rotational phase.