This is what i have so far, but is there a system time variable as a long. I am new to aspect so any suggestions would be appreciated.
proc main
long curtime, lastinputtime
integer thischar
timeval lastinputtime
while (1) ;don't want to exit until there is nothing else entered into the term.
timeval curtime
termreadc thischar
if thischar != 0
timeval lastinputtime
endif
if curtime - lastinputime > 1200
exitwhile
endif
endwhile
termmsg "Disconnected after 20 minutes of idle time."
break
proc main
long curtime, lastinputtime
integer thischar
timeval lastinputtime
while (1) ;don't want to exit until there is nothing else entered into the term.
timeval curtime
termreadc thischar
if thischar != 0
timeval lastinputtime
endif
if curtime - lastinputime > 1200
exitwhile
endif
endwhile
termmsg "Disconnected after 20 minutes of idle time."
break