summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/hires.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/hires.h')
-rw-r--r--winsup/cygwin/hires.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/hires.h b/winsup/cygwin/hires.h
index e91df0690..6a7fe8c72 100644
--- a/winsup/cygwin/hires.h
+++ b/winsup/cygwin/hires.h
@@ -1,6 +1,6 @@
/* hires.h: Definitions for hires clock calculations
- Copyright 2002, 2003, 2004, 2005, 2009 Red Hat, Inc.
+ Copyright 2002, 2003, 2004, 2005, 2009, 2010 Red Hat, Inc.
This file is part of Cygwin.
@@ -25,9 +25,11 @@ class hires_base
{
protected:
int inited;
+ public:
+ void reset() {inited = false;}
};
-class hires_us : hires_base
+class hires_us : public hires_base
{
LARGE_INTEGER primed_ft;
LARGE_INTEGER primed_pc;
@@ -37,7 +39,7 @@ class hires_us : hires_base
LONGLONG usecs (bool justdelta);
};
-class hires_ms : hires_base
+class hires_ms : public hires_base
{
LONGLONG initime_ns;
void prime ();