* times.cc (hires_ns::resolution): Don't return less than 1.
This commit is contained in:
parent
8cb58e8566
commit
74365d9715
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue