-/* $Id$
-
-This file is part of libmspcore
-Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifdef WIN32
#include <windows.h>
#else
int sleep(const TimeDelta &d)
{
#ifndef WIN32
- timespec ts;
- d.fill_timespec(ts);
+ timespec ts = d;
return nanosleep(&ts, 0);
#else
Sleep((DWORD)(d/msec));