Metadata-Version: 2.1
Name: frametimer
Version: 0.1.0
Summary: An accurate clock/timer for obtaining constant framerates (FPS)
Home-page: https://github.com/aib/frametimer
Author: aib
Author-email: aibok42@gmail.com
License: MIT
Keywords: clock,timer,framerate,fps
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.3
Description-Content-Type: text/markdown
License-File: LICENSE

# frametimer

An accurate clock/timer that can be used to help obtain constant framerates. It uses a hybrid approach of sleeping for *most* of the required duration, then spin-waiting for the rest.

## Installation

```pip install frametimer```

(Or just grab the .py file, it's a simple module)

## Usage

```python
timer = frametimer.FrameTimer(60)

while run_main_loop:
	dt = timer.tick()

	update(dt)
	...
```


