Skip to content

Sirraide/nanotime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nanotime

A bit like time, but with nanosecond precision.

Only prints process CPU time tho.

Dependencies

You need to have fmtlib installed.

Installation

Clone the repo and run

cmake -S . -B out && cmake --build out
cmake --install out

Usage

Run nanotime program to time program, just like time.

Here is an example of the output of nanotime ls run in the project's repository:

$ nanotime ls
Makefile  nanotime  out  README.md  src
Started:  Fri Jan 14 16:15:15 2022 (1642173315)
Finished: Fri Jan 14 16:15:15 2022 (1642173315)
s: 0, ms: 0, us: 10, ns: 260

About

Nanosecond precision `time`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published