summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-11 09:34:31 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-11 09:34:31 +0000
commit2408c9f924758b414f364b57a7342ddd48644e46 (patch)
treede0cf5546b79c96913ab02610b7fec3d3444a51e /ace/High_Res_Timer.cpp
parent7af810dad53abb5d32f7d74dba620da9444f63b3 (diff)
downloadATCD-2408c9f924758b414f364b57a7342ddd48644e46.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/High_Res_Timer.cpp')
-rw-r--r--ace/High_Res_Timer.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/ace/High_Res_Timer.cpp b/ace/High_Res_Timer.cpp
index d020859ba66..d17e9cb1fa2 100644
--- a/ace/High_Res_Timer.cpp
+++ b/ace/High_Res_Timer.cpp
@@ -12,7 +12,7 @@ ACE_ALLOC_HOOK_DEFINE(ACE_High_Res_Timer)
// For Intel platforms, a scale factor is required for
// ACE_OS::gethrtime. We'll still set this to one to prevent division
// by zero errors.
-#if defined (ACE_WIN32)
+#if defined (ACE_WIN32) && ! defined (ACE_HAS_WINCE)
u_long
ACE_High_Res_Timer::get_registry_scale_factor (void)
@@ -68,7 +68,7 @@ ACE_High_Res_Timer::dump (void) const
ACE_TRACE ("ACE_High_Res_Timer::dump");
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
- ACE_DEBUG ((LM_DEBUG, "\n"));
+ ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("\n")));
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
}
@@ -155,7 +155,7 @@ ACE_High_Res_Timer::elapsed_time (ACE_hrtime_t &nanoseconds)
nanoseconds = useconds * 1000u + nseconds;
}
-
+#if !defined (ACE_HAS_WINCE)
void
ACE_High_Res_Timer::print_ave (const char *str, const int count, ACE_HANDLE handle)
{
@@ -213,10 +213,12 @@ ACE_High_Res_Timer::print_total (const char *str, const int count, ACE_HANDLE ha
ACE_OS::write (handle, str, ACE_OS::strlen (str));
ACE_OS::write (handle, buf, ACE_OS::strlen (buf));
}
+#endif /* !ACE_HAS_WINCE */
int
ACE_High_Res_Timer::get_env_global_scale_factor (const char *env)
{
+#if !defined (ACE_HAS_WINCE)
if (env != 0)
{
const char *env_value = ACE_OS::getenv (env);
@@ -230,6 +232,8 @@ ACE_High_Res_Timer::get_env_global_scale_factor (const char *env)
}
}
}
-
+#else
+ ACE_UNUSED_ARG (env);
+#endif /* !ACE_HAS_WINCE */
return -1;
}