Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjansson/timer_lib
Cross-platform timer library
https://github.com/mjansson/timer_lib
Last synced: 3 days ago
JSON representation
Cross-platform timer library
- Host: GitHub
- URL: https://github.com/mjansson/timer_lib
- Owner: mjansson
- Created: 2011-03-14T19:22:05.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T07:24:24.000Z (almost 3 years ago)
- Last Synced: 2024-04-10T05:28:10.853Z (7 months ago)
- Language: C
- Homepage: http://maniccoder.blogspot.com
- Size: 20.5 KB
- Stars: 76
- Watchers: 6
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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 athttps://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 athttps://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