summaryrefslogtreecommitdiff
path: root/ace/Timeprobe.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-28 02:33:53 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-28 02:33:53 +0000
commitb8d24ff356cc83fb4762ca51eb73baf0ef3bd6be (patch)
tree10eb4705b7ed39cf17b12295f5fa7b00b8937786 /ace/Timeprobe.cpp
parent5b31a0a9a261344866e57380bce78f2be76cef34 (diff)
downloadATCD-b8d24ff356cc83fb4762ca51eb73baf0ef3bd6be.tar.gz
no longer need to explicitly calibrate the High_Res_Timer
Diffstat (limited to 'ace/Timeprobe.cpp')
-rw-r--r--ace/Timeprobe.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp
index 30f53032f69..4ad6aaf48cc 100644
--- a/ace/Timeprobe.cpp
+++ b/ace/Timeprobe.cpp
@@ -22,10 +22,6 @@ ACE_Timeprobe<ACE_LOCK>::ACE_Timeprobe (u_long size,
max_size_ (size),
current_size_ (0)
{
- // This will calibrate the High_Res_Timers
- ACE_High_Res_Timer calibrator;
- ACE_UNUSED_ARG (calibrator);
-
void *space = this->allocator_->malloc ((sizeof (ACE_timeprobe_t)) * this->max_size_);
this->timeprobes_ = new ((ACE_timeprobe_t *) space) ACE_timeprobe_t[this->max_size_];
@@ -65,11 +61,11 @@ ACE_Timeprobe<ACE_LOCK>::timeprobe (u_long event)
this->current_size_++;
#if defined (VMETRO_TIME_TEST) && (VXWORKS)
-
+
// If we are using the VMETRO board to get time samples, then write
// to the other boards VME address.
*this->current_slot_vme_address_ = event;
-
+
#endif /* VMETRO_TIME_TEST && VXWORKS */
}
@@ -140,10 +136,10 @@ ACE_Timeprobe<ACE_LOCK>::print_times (void)
for (u_long i = 1; i < this->current_size_; i++)
{
- ACE_hrtime_t time_difference =
+ ACE_hrtime_t time_difference =
this->timeprobes_[i].time_ - this->timeprobes_[i-1].time_;
- ACE_UINT32 elapsed_time_in_micro_seconds =
+ ACE_UINT32 elapsed_time_in_micro_seconds =
(ACE_UINT32) (time_difference / ACE_High_Res_Timer::global_scale_factor ());
ACE_DEBUG ((LM_DEBUG,
@@ -168,7 +164,7 @@ ACE_Timeprobe<ACE_LOCK>::find_description_i (u_long i)
{
EVENT_DESCRIPTIONS::iterator next_event_descriptions = iterator;
next_event_descriptions++;
-
+
if (this->timeprobes_[i].event_.event_number_ < (*next_event_descriptions).minimum_id_)
break;
}
@@ -202,7 +198,7 @@ ACE_Timeprobe<ACE_LOCK>::sort_event_descriptions_i (void)
}
template <class Timeprobe>
-ACE_Function_Timeprobe<Timeprobe>::ACE_Function_Timeprobe (Timeprobe &timeprobe,
+ACE_Function_Timeprobe<Timeprobe>::ACE_Function_Timeprobe (Timeprobe &timeprobe,
u_long event)
: timeprobe_ (timeprobe),
event_ (event)