/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __CLOCK_GETTIME_H
#define __CLOCK_GETTIME_H

#include <iwear/config.h>
#include <unistd.h>

#ifndef HAVE_CLOCK_GETTIME
#if defined(_POSIX_TIMERS)
#if ( _POSIX_TIMERS > 0 )
#error "Your POSIX Compatibility is severely broken, or you havent run configure for this machine yet."
#endif
#endif
#else
#warning "You have clock_gettime no need to include this file"
#endif

#include <time.h>

typedef int clockid_t;

#define CLOCK_REALTIME 0
#define CLOCK_MONOTONIC              1
#define CLOCK_PROCESS_CPUTIME_ID     2
#define CLOCK_THREAD_CPUTIME_ID      3


int clock_gettime(clockid_t clk_id, struct timespec *tp);

#endif
