]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/utils.cpp
Drop copyright and license notices from source files
[libs/core.git] / source / time / utils.cpp
index 1d0b8d0ec93d9d1fc08fa5041099ba34349d5d81..123b2d9192c11edfb2fda29f1a7aa22d6cb6cd66 100644 (file)
@@ -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 <windows.h>
 #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));