]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/hires.h
* environ.cc (environ_init): Avoid a compiler warning.
[newlib-cygwin.git] / winsup / cygwin / hires.h
CommitLineData
dce87b21
CF
1/* hires.h: Definitions for hires clock calculations
2
3 Copyright 2002 Red Hat, Inc.
4
5This file is part of Cygwin.
6
7This software is a copyrighted work licensed under the terms of the
8Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9details. */
10
11#ifndef __HIRES_H__
12#define __HIRES_H__
13
9d0efbb3
CF
14#include <mmsystem.h>
15
16class hires_base
dce87b21 17{
9d0efbb3 18 protected:
dce87b21 19 int inited;
9d0efbb3
CF
20 virtual void prime () {}
21 public:
22 virtual LONGLONG usecs (bool justdelta) {return 0LL;}
23 virtual ~hires_base () {}
24};
25
26class hires_us : hires_base
27{
dce87b21
CF
28 LARGE_INTEGER primed_ft;
29 LARGE_INTEGER primed_pc;
30 double freq;
9d0efbb3
CF
31 void prime ();
32 public:
33 LONGLONG usecs (bool justdelta);
34};
35
36class hires_ms : hires_base
37{
38 DWORD initime_ms;
39 LARGE_INTEGER initime_us;
40 UINT minperiod;
41 void prime ();
dce87b21 42 public:
9d0efbb3
CF
43 LONGLONG usecs (bool justdelta);
44 ~hires_ms ();
dce87b21
CF
45};
46#endif /*__HIRES_H__*/
This page took 0.046879 seconds and 5 git commands to generate.