Giter Site home page Giter Site logo

timer_lib's Introduction

timer_lib  -  v1.0  -  Public Domain  -  2011 Mattias Jansson

This library provides a cross-platform interface to measure
elapsed time with (at least) millisecond accuracy. The latest
source code is always available at

https://github.com/mjansson/timer_lib

This library is put in the public domain; you can redistribute
it and/or modify it without any restrictions.

For a complete cross-platform application framework, look at
the foundation library available at

https://github.com/mjansson/foundation_lib


VERSION HISTORY

 0.1  (2011-03-15)  Initial release
 0.2  (2011-03-20)  Removed timer type (always high precision)
                    Fixed timer_ticks_per_second declaration
                    Added test application
 0.3  (2011-03-22)  Removed unused error checks in POSIX code
                    Made timeGetTime fallback optional in Windows code (define USE_FALLBACK to 1)
                    Fixed check of QPC weirdness (signed issue)
 0.4  (2011-03-23)  timer_lib_initialize() returns non-zero if failed (no high precision timer available)
                    Changed POSIX path to use CLOCK_MONOTONIC
                    POSIX timer_system use CLOCK_REALTIME for actual timestamp
                    Addded Mach-O path for MacOS X
                    Changed POSIX path to use nanosecond frequency as returned by clock_gettime
 0.5  (2012-10-01)  Merged (cleaned up) MacOSX build fixes from Nicolas Léveillé
 0.6  (2013-01-11)  Simplified API, only using tick_t type as timestamp and removing custom timer struct
                    Removed old legacy fallback code for Windows platform
 0.7  (2013-01-11)  Using platform_lib for platform and compiler abstraction
 0.8  (2013-07-30)  Made library standalone with no deps (not using deprecated platform_lib)
 1.0  (2021-12-15)  Updated and cleaned up for clang 10+ and Visual Studio 2022

timer_lib's People

Contributors

mjansson avatar uucidl avatar

Watchers

 avatar  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.