/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : periodicTest.cc                                               */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include <sys/sched.h>
#include <errno.h>
#include "System.h"
#include "Syslog.h"
#include "Exception.h"
#include "PeriodicTest.h"

int main( int argc, char **argv )
{
  // Set task priority
  if (System::setTaskPriority(16) == -1)
    return 1;

  try {
    printf("Construct...\n");
    PeriodicTest periodicTask(200);
    printf("Run...\n");
    periodicTask.run();
  }
  catch ( Exception e) {
    fprintf(stdout, "PeriodicTest - caught Exception: %s", e.msg);
  }
  catch (...) {
    fprintf(stdout, "PeriodicTest - Exception caught\n");
  }

  return 0;

}
