-
Notifications
You must be signed in to change notification settings - Fork 3
/
UClock.java
executable file
·32 lines (30 loc) · 976 Bytes
/
UClock.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package jtux;
public class UClock {
static {
System.loadLibrary("jtux");
}
/**
Calls alarm.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#alarm">here</a>} for Posix/SUS C API.</i></b></font>
*/
public static native int alarm(int secs);
/**
Calls nanosleep.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#nanosleep">here</a>} for Posix/SUS C API.</i></b></font>
*/
public static native void nanosleep(UProcess.s_timespec nsecs, UProcess.s_timespec remain) throws UErrorException;
/**
Calls sleep.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#sleep">here</a>} for Posix/SUS C API.</i></b></font>
*/
public static native int sleep(int secs);
/**
Calls usleep.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#usleep">here</a>} for Posix/SUS C API.</i></b></font>
*/
public static native void usleep(int usecs) throws UErrorException;
}