In this paper a leader-following consensus problem of second-order multi-agent systems with fixed and switching topologies as well as non-uniform time-varying delays is considered For the case of fixed topology a necessary and sufficient condition is