Screwdriver++ is a package with various tools for the C++ programmer in Unix environments. It contains classes for time measurement, image and file manipulation, and arbitrary precision arithmetics. Timer is a class for measuring time intervals with millisecond accuracy. Image is a class that uses OpenCv to manipulate images. File is a class to manipilate file input and output in various formats. Number is a class to manipulate arbitrary precision arithmetics.
halttimer waits for LIRC events or SIGUSR1 and sets a timer which will initiate the shutdown sequence (via "sudo halt" by default) when the time is up. The timer's timeout decreases with each keypress by a specified amount of time. Visualization is done using an on-screen-display (OSD).