/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : Clock.cc                                                      */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include "Clock.h"

Clock::Clock(const char *name)
  : TaskInterface(name, ClockServerName)
{
}


Clock::~Clock()
{
}


time_t Clock::getTime()
{
  _clockRequest.code = GetTime;
  send(&_clockRequest, sizeof(ClockRequest), &_clockReply, sizeof(ClockReply));
  return _clockReply.t;
}

