//
// testmain.cpp - Test driver for the display_driver class for stock ticker tape.
//
#include "stdio.h"
#include "display_driver.h"
#include <Windows.h>

int main()
  {
  char            buf[2] = { 0, 0 };
  SYSTEMTIME      st;
  DisplayDriver   displayDriver;

  displayDriver.print( "To be, or not to be. that is the question. Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortune, Or to take arms against a sea of troubles, And by opposing end them? To die. to sleep. No more. and by a sleep to say we end The heart-ache and the thousand natural shocks That flesh is heir to, 'tis a consummation Devoutly to be wish'd. To die, to sleep. To sleep. perchance to dream: ay, there's the rub; For in that sleep of death what dreams may come When we have shuffled off this mortal coil, Must give us pause: there's the respect That makes calamity of so long life;" );

  for(;;)
    {
    GetSystemTime( &st );
    int  millis  = (st.wHour*3600000) + (st.wMinute*60000) + (st.wSecond*1000) + st.wMilliseconds;
    
    printf( "Millis = %d\n", millis );
    //displayDriver.update( millis );
    }

  //for( char c=32; c<128; c++ )
  //  {
  //  buf[0] = c;
  //  displayDriver.print( buf );
  //  int a;
  //  for( int i=0; i<30000000; i++ )
  //    a *= 1234;
  //  }

  return 0;
  }