Coder Social home page Coder Social logo

mitchbur / uteki Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 27 KB

A c++ template library with elapsed timer and stopwatch timer classes that use the std::chrono library.

License: MIT License

C++ 100.00%
elapsed-time stopwatch cpp-lib template-library chronometer

uteki's Introduction

uteki

A small simple C++ template library currently containing:

  1. elapsed_timer
  2. stopwatch_timer

The elapsed_timer class is a simple elapsed timer. The timer starts when created and is always running; there is no start/stop control. The timer's value() method when called returns a std::chrono::duration representation of the elapsed time. The restart() method resets the the timer's elapsed time to 0 but the timer continues to run.

The stopwatch_timer class behaves the same as the elapsed_timer but can also be stopped and started using the methods stop() and start() respectively. There is also a reset() method that stops the timer and resets the timer's start time.

Both the elapsed_timer and stopwatch_timer classes are thread-safe.

uteki's People

Contributors

mitchbur avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.