blob: c33a1ded0c47f0bbbfacc4ea7cec0edfc24558c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* -*- C++ -*- */
// $Id$
// High_Res_Timer.i
#if defined (ACE_HAS_HI_RES_TIMER)
ACE_INLINE void
ACE_High_Res_Timer::start (void)
{
ACE_TRACE ("ACE_High_Res_Timer::start");
this->start_ = ACE_OS::gethrtime ();
}
ACE_INLINE void
ACE_High_Res_Timer::stop (void)
{
ACE_TRACE ("ACE_High_Res_Timer::stop");
this->end_ = ACE_OS::gethrtime ();
}
ACE_INLINE void
ACE_High_Res_Timer::start_incr (void)
{
ACE_TRACE ("ACE_High_Res_Timer::start_incr");
this->temp_ = ACE_OS::gethrtime ();
}
ACE_INLINE void
ACE_High_Res_Timer::stop_incr (void)
{
ACE_TRACE ("ACE_High_Res_Timer::stop_incr");
#if defined (ACE_HAS_LONGLONG_T)
this->total_ += (ACE_OS::gethrtime () - this->temp_);
#endif /* ACE_HAS_LONGLONG_T */
}
#endif /* ACE_HAS_HI_RES_TIMER */
|