--- parser3/src/classes/op.C 2010/11/15 23:31:08 1.205 +++ parser3/src/classes/op.C 2010/11/23 19:32:08 1.206 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_OP_C="$Date: 2010/11/15 23:31:08 $"; +static const char * const IDENT_OP_C="$Date: 2010/11/23 19:32:08 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -876,7 +876,8 @@ static void _throw_operator(Request&, Me static void _sleep_operator(Request& r, MethodParams& params) { double seconds=params.as_double(0, "seconds must be double", r); - pa_sleep((int)trunc(seconds), (int)trunc(seconds*1000)); + if(seconds>0) + pa_sleep((int)trunc(seconds), (int)trunc((seconds-trunc(seconds))*1000000)); } #if defined(WIN32) && defined(_DEBUG)