summaryrefslogtreecommitdiff
path: root/TAO/tests/Simple/time/Time_impl.cpp
blob: c05736f554f9ec0411f93164c2ca9cd2a3ce04b7 (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
38
39
40
41
// $Id$

#include "Time_impl.h"
#include "tao/corba.h"

ACE_RCSID(Time, Time_impl, "$Id$")

// Constructor

Time_Impl::Time_Impl (const char *)
{
}

// Destructor

Time_Impl::~Time_Impl (void)
{
}

// Return the current date/time on the server.

CORBA::Long
Time_Impl::time (CORBA::Environment &env)
{
  ACE_UNUSED_ARG (env);

  return long (ACE_OS::time (0));
}

// Shutdown.

void Time_Impl::shutdown (CORBA::Environment &env)
{
  ACE_UNUSED_ARG (env);

  ACE_DEBUG ((LM_DEBUG,
              "%s\n",
              "Time_Impl is shutting down"));
  TAO_ORB_Core_instance ()->orb ()->shutdown ();
}