// Time_i.cpp,v 1.11 2002/01/29 20:20:42 okellogg Exp

#include "Time_i.h"

ACE_RCSID(Time, Time_i, "Time_i.cpp,v 1.11 2002/01/29 20:20:42 okellogg Exp")

// Constructor
Time_i::Time_i (void)
{
  // no-op
}

// Copy  Constructor
Time_i::Time_i (Time_i &t)
  : POA_Time (t)
{
  // no-op
}

// Destructor

Time_i::~Time_i (void)
{
  // no-op
}

// Set the ORB pointer.

void
Time_i::orb (CORBA::ORB_ptr o)
{
  this->orb_ = CORBA::ORB::_duplicate (o);
}

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

CORBA::Long
Time_i::current_time (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  return CORBA::Long (ACE_OS::time (0));
}

// Shutdown.

void
Time_i::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED )
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  ACE_DEBUG ((LM_DEBUG,
              "%s\n",
              "Time_i is shutting down"));

  // Instruct the ORB to shutdown.
  this->orb_->shutdown ();
}

