PLplot
5.15.0
Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
b
c
d
f
g
m
o
p
s
t
w
z
+
Functions
_
c
f
m
p
s
t
+
Variables
_
b
c
d
f
g
m
o
p
s
t
w
z
+
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
j
l
m
n
o
p
q
r
s
t
v
w
x
~
+
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
Enumerations
Enumerator
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
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
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
c
d
f
h
i
l
m
n
o
p
q
r
s
t
w
Enumerations
+
Enumerator
a
b
c
d
g
l
m
n
o
p
r
s
t
w
y
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
wxPLplot_nanosec.cpp
Go to the documentation of this file.
1
#include "
wxPLplot_nanosec.h
"
2
#if defined ( PLPLOT_WX_DEBUG_OUTPUT ) && defined ( PLPLOT_WX_NANOSEC )
3
4
#include <stdint.h>
// for uint64 definition
5
#include <time.h>
// for clock_gettime
6
#define BILLION 1000000000L
7
8
void
9
pl_wx_nanosec(
const
char
*
string
)
10
{
11
uint64_t timestamp;
12
struct
timespec timenano;
13
// Determine seconds since the epoch and nanosecs since the epoch of
14
// the last second.
15
clock_gettime( CLOCK_MONOTONIC, &timenano );
16
timestamp = BILLION * ( timenano.tv_sec ) + timenano.tv_nsec;
17
wxLogDebug(
"nanosecs since epoch = %llu: %s"
, (
long
long
unsigned
int
) timestamp, string );
18
}
19
#endif //#if defined(PLPLOT_WX_DEBUG_OUTPUT) && defined(PLPLOT_WX_NANOSEC)
wxPLplot_nanosec.h
plplot_source
bindings
wxwidgets
wxPLplot_nanosec.cpp
Generated on Sat Jun 1 2019 12:58:05 for PLplot by
1.8.13