PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
time
elapsed.h
1
#pragma once
2
3
#include "pixelbullet/time/duration.h"
4
#include "pixelbullet/time/timer.h"
5
6
namespace
pixelbullet
7
{
8
class
Elapsed
9
{
10
public
:
11
explicit
Elapsed
(
Duration
duration);
12
15
float
GetElapsed
();
16
17
private
:
18
Duration
duration_;
19
Timer
timer_;
20
};
21
}
// namespace pixelbullet
pixelbullet::Duration
A lightweight duration class that holds a time span in seconds.
Definition
duration.h:9
pixelbullet::Elapsed
Definition
elapsed.h:9
pixelbullet::Elapsed::GetElapsed
float GetElapsed()
Definition
elapsed.cc:11
pixelbullet::Timer
A high-resolution timer for measuring elapsed time.
Definition
timer.h:9
Generated by
1.12.0