Choreonoid
1.8
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
p
q
r
s
t
v
w
z
Enumerations
Enumerator
a
b
c
d
f
g
i
k
l
m
n
p
s
t
u
Classes
Class List
Class Index
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
i
l
n
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Properties
Related Functions
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
v
w
y
Files
File List
File Members
All
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Util
Sleep.h
Go to the documentation of this file.
1
2
#ifndef CNOID_UTIL_SLEEP_H
3
#define CNOID_UTIL_SLEEP_H
4
5
#ifdef _WIN32
6
#include <windows.h>
7
8
namespace
cnoid
{
9
10
inline
void
msleep
(
int
msec){
11
::Sleep(msec);
12
}
13
inline
void
usleep
(
int
usec){
14
::Sleep(usec / 1000);
15
}
16
17
}
18
19
#else
20
21
#include <unistd.h>
22
23
namespace
cnoid
{
24
25
inline
void
msleep
(
int
msec){
26
::usleep
(msec * 1000);
27
}
28
inline
void
usleep
(
int
usec){
29
::usleep
(usec);
30
}
31
32
}
33
34
#endif
35
36
#endif
cnoid::msleep
void msleep(int msec)
Definition:
Sleep.h:25
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::usleep
void usleep(int usec)
Definition:
Sleep.h:28
Generated by
1.8.17