Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine
1.5.20
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
z
Functions
a
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
b
d
f
i
m
s
v
w
Typedefs
a
b
c
f
g
i
k
o
r
s
t
v
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
Macros
▼
Radium Engine
►
Radium Basics
►
Radium Concepts
►
Developer manual
►
Licenses
Todo List
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
Core
►
Animation
►
Asset
►
Containers
►
Geometry
►
Math
►
Resources
►
Tasks
▼
Utils
Attribs.cpp
Attribs.hpp
BijectiveAssociation.hpp
Chronometer.hpp
CircularIndex.cpp
CircularIndex.hpp
Color.cpp
Color.hpp
ContainerIntrospectionInterface.hpp
EnumConverter.hpp
Index.hpp
IndexedObject.hpp
IndexMap.hpp
Log.hpp
ObjectWithSemantic.hpp
Observable.hpp
Singleton.hpp
StackTrace.cpp
StackTrace.hpp
StdExperimentalTypeTraits.hpp
StdFilesystem.hpp
►
StdMapIterators.hpp
StdOptional.hpp
StdUtils.hpp
StringUtils.cpp
StringUtils.hpp
Timer.hpp
TypesUtils.cpp
TypesUtils.hpp
Version.hpp
CoreMacros.hpp
pch.hpp
RaCore.hpp
Types.hpp
►
Engine
►
Gui
►
Headless
►
IO
►
PluginBase
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
Timer.hpp
1
#pragma once
2
3
#include <Core/RaCore.hpp>
4
#include <chrono>
5
6
namespace
Ra
{
7
namespace
Core {
8
// Convenience functions for timing.
9
// Wrapping the highest resolution time measuring.
10
namespace
Utils {
11
using
Clock =
std::chrono::high_resolution_clock
;
12
using
TimePoint =
std::chrono::time_point<Clock>
;
13
14
inline
long
RA_CORE_API getIntervalMicro(
const
TimePoint& start,
const
TimePoint& end ) {
15
return
(
std::chrono::duration_cast<std::chrono::microseconds>
( end - start ) ).count();
16
}
17
18
inline
Scalar RA_CORE_API getIntervalSeconds(
const
TimePoint& start,
const
TimePoint& end ) {
19
return
(
std::chrono::duration_cast
<
20
std::chrono::duration<Scalar, std::chrono::seconds::period>
>( end - start ) )
21
.count();
22
}
23
24
}
// namespace Utils
25
}
// namespace Core
26
}
// namespace Ra
std::chrono::duration_cast
T duration_cast(T... args)
std::chrono::duration
std::chrono::high_resolution_clock
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:3
std::chrono::time_point
src
Core
Utils
Timer.hpp
Generated by
1.12.0