Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfps

Alarm based FPS counter and date in C

Depends

Compile

cmake . --install-prefix=/usr -DCMAKE_BUILD_TYPE=ReleaseStrip -DCMAKE_C_COMPILER=clang
make install

Usage

./cfps

Output

           uptime       frames total         frames sec                fps  calendar time
[             101] [        98905046] [          407272] [         1010861] Tue Aug  4 15:04:53 2026

Keyboard Layout

  • ESC to exit sucessful
  • CTRL + C to exit failure with cleanup

Example

#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);
}

About

Alarm based FPS counter and date in C

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages