Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
time.h
1 #pragma once
2 
3 namespace blowbox
4 {
6  class Time
7  {
8  public:
9  Time();
10  ~Time();
11 
13  void NewFrame();
14 
16  static float GetDeltaTime();
18  static double GetDeltaTimeAsDouble();
19 
21  static float GetProcessTime();
23  static double GetProcessTimeAsDouble();
24 
25  private:
27  double delta_time_;
29  double process_time_;
30  };
31 }
static double GetDeltaTimeAsDouble()
Definition: time.cc:37
double delta_time_
The current delta time.
Definition: time.h:27
double frame_start_time_
The current frame's start time.
Definition: time.h:28
static float GetDeltaTime()
Definition: time.cc:31
Manages the time in Blowbox.
Definition: time.h:6
static float GetProcessTime()
Definition: time.cc:43
static double GetProcessTimeAsDouble()
Definition: time.cc:49
void NewFrame()
Indicate to the Time instance that a new frame has begun.
Definition: time.cc:23
The main Blowbox namespace.
Definition: image.cc:8
double initialization_time_
The time at which the Time instance was created.
Definition: time.h:26
double process_time_
The time the process has been alive for.
Definition: time.h:29