* times.cc (hires_ns::resolution): Don't return less than 1.

This commit is contained in:
Corinna Vinschen 2011-12-13 11:38:12 +00:00
parent 8cb58e8566
commit 74365d9715
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-12-13 Dave Korn <dave.korn.cygwin@gmail.com>
* times.cc (hires_ns::resolution): Don't return less than 1.
2011-12-12 Christopher Faylor <me.cygwin2011@cgf.cx> 2011-12-12 Christopher Faylor <me.cygwin2011@cgf.cx>
* cygthread.h (cygthread::name): Very minor formatting tweak. * cygthread.h (cygthread::name): Very minor formatting tweak.

View File

@ -718,7 +718,7 @@ hires_ns::resolution ()
return (long long) -1; return (long long) -1;
} }
return (LONGLONG) freq; return (freq <= 1.0) ? 1LL : (LONGLONG) freq;
} }
UINT UINT