X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftime%2Futils.cpp;h=123b2d9192c11edfb2fda29f1a7aa22d6cb6cd66;hb=967785734be5c3fc6f75da122c2d93ebbb338271;hp=1d0b8d0ec93d9d1fc08fa5041099ba34349d5d81;hpb=b56eb5ec1da675da0c66abc53c1e4f6c4e4cccbd;p=libs%2Fcore.git diff --git a/source/time/utils.cpp b/source/time/utils.cpp index 1d0b8d0..123b2d9 100644 --- a/source/time/utils.cpp +++ b/source/time/utils.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifdef WIN32 #include #else @@ -81,8 +74,7 @@ Sleeps for the given time. 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));