Skip to content

High precision simple chrono, and excution time calculation (calculate in nano, millisec, and sec). And a time formater. The project contain two classes. ChronoSimple and UnivTime classes. The first calculate the execution time. The second is used to formate that time. The project just demonstrate how to implemente such high precision execution …

Notifications You must be signed in to change notification settings

MohamedLamineAllal/TimeUniv-ChronoSimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeUniv&ChronoSimple

The project is about two classes, the ChronoSimple class which offer time computation in different unit nano, ms, s. So it can be used for high precision computation. It use the std::chrono and high_resolution_clock. In it's body. simple to use. And the UnivTime class. which is a class that will perform, reformating the elapsed time from one of the unit (nano, ms, s) to a readable format. Adding new format is just easy. The project is just a simple demonstration of an implemenation of a high precision nano chrono. Whith ease of use. To know how things work just go and see the demo.cpp and demo.exe. Also look at the source code of course. NOTE: to succesfuly compile this project you need to have a gcc compiler that have a posix thread model. So make sure to have such a compiler (linux and mac user will have no problem, gcc default compiler is a posix thread model.). the problem is windows users. you need to download MinGW-w64-posix suite, here a link: https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/pthreads/ peak the right one posix. Then the bin folder of the suite (which contain gcc, g++, ....) to the path system environment variale. Make sure to add it at the start. so that you make sure it's the version to be run (if you don't understand, search about those wordkeys). You can test the version by gcc -v. Make sure it's the right version, thread model: posix.

About

High precision simple chrono, and excution time calculation (calculate in nano, millisec, and sec). And a time formater. The project contain two classes. ChronoSimple and UnivTime classes. The first calculate the execution time. The second is used to formate that time. The project just demonstrate how to implemente such high precision execution …

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages