According the the anandtech web site, this is BSD licensed.
Perhaps simpler to implement, altho not as flexible, is the Bash internal variable $TMOUT. From the Bash scripting guide:
If the $TMOUT environmental variable is set to a non-zero value time, then the shell prompt will time out after time seconds. This will cause a logout.
I am sure that other shells have similar features.