Time-resolved reversal of spin-transfer switching in a nanomagnet.