PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
time
interval_timer.h
1
#pragma once
2
3
#include "pixelbullet/time/duration.h"
4
#include "pixelbullet/time/timer.h"
5
6
#include <optional>
7
8
namespace
pixelbullet
9
{
10
class
IntervalTimer
11
{
12
public
:
13
explicit
IntervalTimer(
Duration
interval);
14
15
[[nodiscard]] std::optional<Duration> poll();
16
17
private
:
18
Duration
interval_;
19
Timer
timer_;
20
};
21
}
// namespace pixelbullet
pixelbullet::Duration
Definition
duration.h:6
pixelbullet::Timer
Definition
timer.h:10
Generated by
1.16.1