Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
4
Merge Requests
4
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
2e44e5b5
Commit
2e44e5b5
authored
Oct 24, 2016
by
Florian Pausch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed bug in ita_pause.m
parent
7fc3b5c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
kernel/StandardRoutines/ita_pause.m
kernel/StandardRoutines/ita_pause.m
+2
-2
kernel/StandardRoutines/ita_pause_ms.m
kernel/StandardRoutines/ita_pause_ms.m
+1
-1
kernel/StandardRoutines/ita_pause_ns.m
kernel/StandardRoutines/ita_pause_ns.m
+1
-1
kernel/StandardRoutines/ita_pause_us.m
kernel/StandardRoutines/ita_pause_us.m
+1
-1
No files found.
kernel/StandardRoutines/ita_pause.m
View file @
2e44e5b5
function
[]
=
ita_pause
(
seconds
)
function
ita_pause
(
seconds
)
% ita_pause pauses (sleeps) for given time (units in seconds)
% ita_pause pauses (sleeps) for given time (units in seconds)
java
.
util
.
concurrent
.
locks
.
LockSupport
.
park
(
seconds
*
1e9
)
);
java
.
util
.
concurrent
.
locks
.
LockSupport
.
park
Nanos
(
seconds
*
1e9
);
end
end
kernel/StandardRoutines/ita_pause_ms.m
View file @
2e44e5b5
function
[]
=
ita_pause_ms
(
milli_seconds
)
function
ita_pause_ms
(
milli_seconds
)
% ita_pause_ms pauses (sleeps) for given time (units in milliseconds)
% ita_pause_ms pauses (sleeps) for given time (units in milliseconds)
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
milli_seconds
*
1e6
);
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
milli_seconds
*
1e6
);
end
end
kernel/StandardRoutines/ita_pause_ns.m
View file @
2e44e5b5
function
[]
=
ita_pause_ns
(
nano_seconds
)
function
ita_pause_ns
(
nano_seconds
)
% ita_pause_ns pauses (sleeps) for given time (units in nanoseconds)
% ita_pause_ns pauses (sleeps) for given time (units in nanoseconds)
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
nano_seconds
);
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
nano_seconds
);
end
end
kernel/StandardRoutines/ita_pause_us.m
View file @
2e44e5b5
function
[]
=
ita_pause_us
(
micro_seconds
)
function
ita_pause_us
(
micro_seconds
)
% ita_pause_us pauses (sleeps) for given time (units in micro seconds)
% ita_pause_us pauses (sleeps) for given time (units in micro seconds)
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
micro_seconds
*
1e3
);
java
.
util
.
concurrent
.
locks
.
LockSupport
.
parkNanos
(
micro_seconds
*
1e3
);
end
end
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