Spin dynamics of current-driven single magnetic adatoms and molecules