summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-18 12:20:28 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-18 12:20:28 +0000
commit9e2eb8b7f6194b20b2911df6c177043532d95e7a (patch)
tree50ea1a8108ce45e44134bec4575af6d5ad211f25 /ace/High_Res_Timer.cpp
parentb46c8683073838301828947c90820b43ce3d1e49 (diff)
downloadATCD-9e2eb8b7f6194b20b2911df6c177043532d95e7a.tar.gz
.
Diffstat (limited to 'ace/High_Res_Timer.cpp')
-rw-r--r--ace/High_Res_Timer.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/High_Res_Timer.cpp b/ace/High_Res_Timer.cpp
index e2037319031..e7b34c42dac 100644
--- a/ace/High_Res_Timer.cpp
+++ b/ace/High_Res_Timer.cpp
@@ -233,14 +233,14 @@ ACE_High_Res_Timer::reset (void)
}
void
-ACE_High_Res_Timer::elapsed_time (ACE_Time_Value &tv)
+ACE_High_Res_Timer::elapsed_time (ACE_Time_Value &tv) const
{
hrtime_to_tv (tv, end_ - start_);
}
#if defined (ACE_HAS_POSIX_TIME)
void
-ACE_High_Res_Timer::elapsed_time (struct timespec &elapsed_time)
+ACE_High_Res_Timer::elapsed_time (struct timespec &elapsed_time) const
{
// This implementation should be cleaned up.
@@ -271,13 +271,13 @@ ACE_High_Res_Timer::elapsed_time (struct timespec &elapsed_time)
#endif /* ACE_HAS_POSIX_TIME */
void
-ACE_High_Res_Timer::elapsed_time_incr (ACE_Time_Value &tv)
+ACE_High_Res_Timer::elapsed_time_incr (ACE_Time_Value &tv) const
{
hrtime_to_tv (tv, total_);
}
void
-ACE_High_Res_Timer::elapsed_time (ACE_hrtime_t &nanoseconds)
+ACE_High_Res_Timer::elapsed_time (ACE_hrtime_t &nanoseconds) const
{
// Please do _not_ rearrange this equation. It is carefully
// designed and tested to avoid overflow on machines that
@@ -289,7 +289,7 @@ ACE_High_Res_Timer::elapsed_time (ACE_hrtime_t &nanoseconds)
void
ACE_High_Res_Timer::print_ave (const char *str,
const int count,
- ACE_HANDLE handle)
+ ACE_HANDLE handle) const
{
ACE_TRACE ("ACE_High_Res_Timer::print_ave");
@@ -322,7 +322,9 @@ ACE_High_Res_Timer::print_ave (const char *str,
}
void
-ACE_High_Res_Timer::print_total (const char *str, const int count, ACE_HANDLE handle)
+ACE_High_Res_Timer::print_total (const char *str,
+ const int count,
+ ACE_HANDLE handle) const
{
ACE_TRACE ("ACE_High_Res_Timer::print_total");