A quick PowerShell one liner to perform a continuous/rolling ping and log the results to a file with a timestamp

ping -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_} > c:\script\ping_log.txt