Alarm based FPS counter and date in C
cmake . --install-prefix=/usr -DCMAKE_BUILD_TYPE=ReleaseStrip -DCMAKE_C_COMPILER=clang
make install./cfps uptime frames total frames sec fps calendar time
[ 101] [ 98905046] [ 407272] [ 1010861] Tue Aug 4 15:04:53 2026ESCto exit sucessfulCTRL+Cto exit failure with cleanup
#include "sys.h"
int main(int argc, char** argv)
{
if(!sys.init()) exit(EXIT_FAILURE);
while(term_getc() != KEY_ESC && sys.step() && sys.print());
exit(EXIT_SUCCESS);
}