summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-09 22:37:25 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-09 22:37:25 +0000
commit293be874593c54ae18c1e83a1b399ed4f2c17b19 (patch)
tree5579a8a1e8dce3a956aac7bcbd2e05d66d920f38 /ace
parent25b176626b578e5554c948d919d8ee35ff83d229 (diff)
downloadATCD-293be874593c54ae18c1e83a1b399ed4f2c17b19.tar.gz
ChangeLogTag:Mon Apr 9 15:36:04 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/High_Res_Timer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/High_Res_Timer.cpp b/ace/High_Res_Timer.cpp
index 86fdfd01016..97f0b8047c6 100644
--- a/ace/High_Res_Timer.cpp
+++ b/ace/High_Res_Timer.cpp
@@ -87,6 +87,7 @@ ACE_High_Res_Timer::get_cpuinfo (void)
break;
}
#else
+ double mhertz = 1;
double bmips = 1;
ACE_TCHAR arg[128];
@@ -118,6 +119,14 @@ ACE_High_Res_Timer::get_cpuinfo (void)
// ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" recognized Pentium Pro/II chip...")));
}
}
+ else if (::sscanf (buf, "cpu MHz : %lf\n", &mhertz) == 1)
+ {
+ if (supported)
+ {
+ scale_factor = (ACE_UINT32) (mhertz + 0.5);
+ }
+ break;
+ }
else if (::sscanf (buf, "bogomips : %lf\n", &bmips) == 1
|| ::sscanf (buf, "BogoMIPS : %lf\n", &bmips) == 1)
{