#endif
#include <msp/core/systemerror.h>
#include "datetime.h"
+#include "rawtime_private.h"
#include "timedelta.h"
#include "timestamp.h"
#include "units.h"
void sleep(const TimeDelta &d)
{
#ifndef WIN32
- timespec ts = d;
+ timespec ts = rawtime_to_timespec(d.raw());
while(nanosleep(&ts, 0)==-1)
if(errno!=EINTR)
throw system_error("nanosleep");