/*
  mffm Time Code
  Time Code for multimedia systems

  Copyright (C) 2000, 2001 Matt R. Flax <flatmax@ieee.org>
  
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
  
  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.
  
  You have received a copy of the GNU Lesser General Public License
  along with this library.
*/
#include <values.h>
#include "timeCode.H"

#define ARRAYTYPE short int
#define COUNTERTYPE long
#define FIELDCOUNTTYPE int
#define FIELDCOUNT 3
#define MASTERCOUNTERTYPE MasterCounter<field, FIELDCOUNT>

int main(void){
  TimeCode<MASTERCOUNTERTYPE, ARRAYTYPE> timeCode(200000, 74, 60, 75), timeCode1(0, 74, 60, 75);
  std::cout << timeCode<<std::endl;

  counter count1(0, 678, 1000);
  counter count2(0, 111, 1000);
  counter count3(0, 789, 1000);

  std::cout << timeCode<<std::endl;
}
