Last change
on this file since 380 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
303 bytes
|
Rev | Line | |
---|
[352] | 1 | #define _GNU_SOURCE
|
---|
| 2 | #include <unistd.h>
|
---|
| 3 | #include <sys/time.h>
|
---|
| 4 |
|
---|
| 5 | unsigned ualarm(unsigned value, unsigned interval)
|
---|
| 6 | {
|
---|
| 7 | struct itimerval it = {
|
---|
| 8 | .it_interval.tv_usec = interval,
|
---|
| 9 | .it_value.tv_usec = value
|
---|
| 10 | };
|
---|
| 11 | setitimer(ITIMER_REAL, &it, &it);
|
---|
| 12 | return it.it_value.tv_sec*1000000 + it.it_value.tv_usec;
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.