correct the following batch syntax:
ping -n 1 192.168.2.254 >nul

if %errorlevel% == 0 (
echo Connection restored at %date% - %time% >> trissy.txt
echo NAME_1 time: %date% - %time% >> trissy.txt
call :stoptimer
call :DisplayTimerResult
echo DisplayTimerResult  >>trissy.txt
if %errorlevel% == 1 (
goto time

) Your response should contain 150+ words.
user