summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/test_i.cpp
blob: 941a97eb52dd5ce61a2913903aa822f08a7a520e (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
// $Id$

#include "test_i.h"

#if defined(ACE_HAS_XT)

#if !defined(__ACE_INLINE__)
#include "test_i.i"
#endif /* __ACE_INLINE__ */

ACE_RCSID(FL_Cube, test_i, "$Id$")

Stopwatch_imp::Stopwatch_imp (CORBA::ORB_ptr orb, Timer_imp *timer)
  : orb_ (CORBA::ORB::_duplicate (orb)),
    timer_ (timer)
{
}

void
Stopwatch_imp::start (CORBA::Environment&)
{
  this->timer_->start ();
}

void
Stopwatch_imp::stop (CORBA::Environment&)
{
  this->timer_->stop ();
}

void
Stopwatch_imp::shutdown (CORBA::Environment&)
{
  this->orb_->shutdown (0);
}

#endif /* ACE_HAS_XT */