17 lines
291 B
C
17 lines
291 B
C
#include<stdio.h>
|
|
#include<time.h>
|
|
#include<pthread.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
struct timespec time1, time2;
|
|
time_t start, ende;
|
|
time1.tv_sec = 0;
|
|
time1.tv_nsec = 500000000000L;
|
|
time(&start);
|
|
clock_nanosleep(CLOCK_REALTIME, 0, &deadline, NULL);
|
|
time(&ende);
|
|
|
|
return 0;
|
|
}
|