| 1234567891011121314151617181920212223242526 |
- //
- // time.hpp
- // engine
- //
- // Created by Sam Jaffe on 9/3/16.
- //
- #pragma once
- #include <chrono>
- namespace engine {
- using clock = std::chrono::steady_clock;
- using timestamp = std::chrono::time_point<clock>;
- using duration = clock::duration;
-
- extern duration const FPS30;
- extern duration const FPS60;
- extern duration const FPS120;
- extern duration const FPS144;
-
- struct tick {
- timestamp now;
- duration since;
- };
- }
|