GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sadmansk/nano-timer: Cross-platform C++ static utility for nanosecond precision time

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.cpp
example.cpp
 
 
timer.cpp
timer.cpp
 
 
timer.h
timer.h
 
 

Repository files navigation

Nano timer build status

C++ static utility for nanosecond precision time

Requirements:

These files will work under any compiler that supports at the minimum C++11. Make sure to use the correct compiler for your platform of choice for running the provided example.cpp.

Usage:

Add #include "path/to/timer.h" to the file where you want to use the timer.

Timer::reset() resets the start time to the current time.

Timer::elapsed() returns the elapsed duration between the start time and current time.

Initially, start time is initialized to the current time, i.e. time at the start of the program.

The file example.cpp file contains usage examples. To run the example file:

g++ -o example example.cpp timer.h timer.cpp
./example

License:

See LICENSE for more details.

About

Cross-platform C++ static utility for nanosecond precision time

Topics

cpp-librarycpp11cross-platformnanosecond-resolutionstatic-librarytimer

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.