Skip to content

fornstedt/tictoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tictoc

Matlab inspired time measurement for C. Simply include timemeasure.h, put tic() where measurement should start and toc() where it ends. You will get a print to stdout containing file, function, line and the time elapsed (real and cpu) between tic() and toc().

tic()and toc()can be nested and the nesting level is included in the stdout output.

You can also use a variant of these functions called tic_msg(char*) and toc_msg(char*) to add an optional text string to tag your measurements. These functions work togeather with tic() and toc() too in any combination.

About

Matlab inspired time measurement for C, using tic() and toc() functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published