Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
60379bea
Commit
60379bea
authored
Jan 13, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time_Sleep moved from sutl
parent
78689281
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
src/lib/co/src/co_time.c
src/lib/co/src/co_time.c
+19
-1
src/lib/co/src/co_time.h
src/lib/co/src/co_time.h
+2
-1
No files found.
src/lib/co/src/co_time.c
View file @
60379bea
/**
* Proview $Id: co_time.c,v 1.
6 2005-09-01 14:57:52
claes Exp $
* Proview $Id: co_time.c,v 1.
7 2006-01-13 06:41:20
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -944,4 +944,22 @@ time_ZeroD (
return
tp
;
}
void
time_Sleep
(
float
time
)
{
#ifdef OS_VMS
int
sts
;
sts
=
lib
$
wait
(
&
time
);
#elif OS_ELN
LARGE_INTEGER
l_time
;
l_time
.
high
=
-
1
;
l_time
.
low
=
-
time
*
10000000
;
ker
$
wait_any
(
NULL
,
NULL
,
&
l_time
);
#elif defined(OS_LYNX) || defined (OS_LINUX)
pwr_tDeltaTime
p_time
;
time_FloatToD
(
&
p_time
,
time
);
nanosleep
(
(
pwr_tTime
*
)
&
p_time
,
NULL
);
#endif
}
src/lib/co/src/co_time.h
View file @
60379bea
/**
* Proview $Id: co_time.h,v 1.
5 2005-09-01 14:57:52
claes Exp $
* Proview $Id: co_time.h,v 1.
6 2006-01-13 06:41:20
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -135,6 +135,7 @@ pwr_tDeltaTime * time_ClockToD (pwr_tStatus*, pwr_tDeltaTime*, time_tClock);
time_tOs
*
time_AtoOs
(
pwr_tStatus
*
,
time_tOs
*
,
pwr_tTime
*
);
time_tOs
*
time_DtoOs
(
pwr_tStatus
*
,
time_tOs
*
,
pwr_tDeltaTime
*
);
pwr_tDeltaTime
*
time_ZeroD
(
pwr_tDeltaTime
*
);
void
time_Sleep
(
float
time
);
#if defined(OS_ELN)
int
eln_clock_gettime
(
clockid_t
,
struct
timespec
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment