Cygwin: Cleanup time handling
* Redefine NSPERSEC to NS100PERSEC * Define NSPERSEC as nanosecs per second * Define USPERSEC as microsecs per second * Use above constants throughout where appropriate * Rename to_us to timespec_to_us and inline * Rename it_bad to timespec_bad and inline Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -29,8 +29,12 @@ details. */
|
||||
|
||||
/* 100ns difference between Windows and UNIX timebase. */
|
||||
#define FACTOR (0x19db1ded53e8000LL)
|
||||
/* # of nanosecs per second. */
|
||||
#define NSPERSEC (1000000000)
|
||||
/* # of 100ns intervals per second. */
|
||||
#define NSPERSEC 10000000LL
|
||||
#define NS100PERSEC (10000000)
|
||||
/* # of millisecs per second. */
|
||||
#define USPERSEC (1000000)
|
||||
|
||||
class hires_base
|
||||
{
|
||||
|
Reference in New Issue
Block a user