/* 
 * Copyright (C) 2000-2001 Computer & Communications Research Laboratories,
 *			   Industrial Technology Research Institute
 */
/*
 * osdep.c
 *
 * $Id: osdep.c,v 1.10 2001/06/14 09:50:55 hcc Exp $
 */

#define _POSIX_C_SOURCE 199309L /* struct timespec */

#include <time.h>
#include "osdep.h"

#ifdef UNIX
void  sleeping(unsigned int msec)
{
	struct timespec rqtp;
	
	rqtp.tv_sec = 0; rqtp.tv_nsec = msec*1000000;/* 10ms */
	nanosleep(&rqtp,NULL);
}
#endif
