forked from Imagelibrary/rtems
* POSIX/clock_gettime.c, POSIX/gettimeofday.c: New. * Makefile.am: Add clock_gettime, gettimeofday.c.
19 lines
338 B
C
19 lines
338 B
C
/*
|
|
* Copyright (c) 2011 by
|
|
* Ralf Corsépius, Ulm, Germany. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software
|
|
* is freely granted, provided that this notice is preserved.
|
|
*/
|
|
|
|
#include <sys/time.h>
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
struct timeval tv;
|
|
struct timezone tz;
|
|
|
|
return gettimeofday(&tv, &tz);
|
|
}
|