Scene Fusion 2 API Reference
ksTime.h
1 /*************************************************************************
2  *
3  * KINEMATICOUP CONFIDENTIAL
4  * __________________
5  *
6  * Copyright (2016-2021) KinematicSoup Technologies Incorporated
7  * All Rights Reserved.
8  *
9  * NOTICE: All information contained herein is, and remains
10  * the property of KinematicSoup Technologies Incorporated and its
11  * suppliers, if any. The intellectual and technical concepts contained
12  * herein are proprietary to KinematicSoup Technologies Incorporated
13  * and its suppliers and may be covered by Canadian and Foreign Patents,
14  * patents in process, and are protected by trade secret or copyright law.
15  * Dissemination of this information or reproduction of this material
16  * is strictly forbidden unless prior written permission is obtained
17  * from KinematicSoup Technologies Incorporated.
18  */
19 #pragma once
20 #include <cstdint>
21 
22 namespace KS
23 {
27  class ksTime
28  {
29  public:
33  ksTime() :
34  m_delta{ 0.0f },
35  m_gameTime{ 0.0 },
36  m_uptime{ 0.0 },
37  m_frame{ 0 }
38  { }
39 
43  float& Delta() { return m_delta; }
44 
48  const float& Delta() const { return m_delta; }
49 
53  double& GameTime() { return m_gameTime; }
54 
58  const double& GameTime() const { return m_gameTime; }
59 
63  double& Uptime() { return m_uptime; }
64 
68  const double& Uptime() const { return m_uptime; }
69 
73  uint64_t& Frame() { return m_frame; }
74 
78  const uint64_t& Frame() const { return m_frame; }
79 
80  private:
81  float m_delta;
82  double m_gameTime;
83  double m_uptime;
84  uint64_t m_frame;
85  };
86 }
Definition: ksTime.h:28
const uint64_t & Frame() const
Definition: ksTime.h:78
const double & GameTime() const
Definition: ksTime.h:58
double & Uptime()
Definition: ksTime.h:63
float & Delta()
Definition: ksTime.h:43
const double & Uptime() const
Definition: ksTime.h:68
double & GameTime()
Definition: ksTime.h:53
const float & Delta() const
Definition: ksTime.h:48
uint64_t & Frame()
Definition: ksTime.h:73
ksTime()
Definition: ksTime.h:33
Definition: sfDictionaryProperty.h:24