Files
rtems/testsuites/libtests/POSIX/clock_gettime.c
Ralf Corsepius 268531a72e 2011-01-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/clock_gettime.c, POSIX/gettimeofday.c: New.
	* Makefile.am: Add clock_gettime, gettimeofday.c.
2011-01-31 15:59:19 +00:00

18 lines
332 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 <time.h>
int
main (void)
{
struct timespec mytime;
return clock_gettime(CLOCK_REALTIME,&mytime);
}