Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
common
Timestamp.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// std
4
#include <chrono>
5
#include <cstdint>
6
7
#include "
depthai-shared/utility/Serialization.hpp
"
8
9
namespace
dai
{
10
12
struct
Timestamp
{
13
int64_t
sec
= 0,
nsec
= 0;
14
std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration>
get
()
const
{
15
using namespace
std::chrono;
16
return
time_point<steady_clock, steady_clock::duration>{seconds(
sec
) + nanoseconds(
nsec
)};
17
}
18
};
19
20
DEPTHAI_SERIALIZE_EXT
(Timestamp,
sec
,
nsec
);
21
22
}
// namespace dai
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::Timestamp
Timestamp structure.
Definition:
Timestamp.hpp:12
dai::Timestamp::get
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > get() const
Definition:
Timestamp.hpp:14
Serialization.hpp
dai::Timestamp::nsec
int64_t nsec
Definition:
Timestamp.hpp:13
dai::Timestamp::sec
int64_t sec
Definition:
Timestamp.hpp:13
dai
Definition:
CameraExposureOffset.hpp:6
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19