//
// Copyright (C) 1991 Texas Instruments Incorporated.
//
// Permission is granted to any individual or institution to use, copy, modify,
// and distribute this software, provided that this complete copyright and
// permission notice is maintained, intact, in all copies and supporting
// documentation.
//
// Texas Instruments Incorporated provides this software "as is" without
// express or implied warranty.
//

#include <cool/Timer.h>				// Includer COOL timer class

int main (void) {
  Timer t1;					// Create a timer object
  t1.mark ();					// Set start reference point
  for (int i = 0, j = 0; i < 10000; i++)	// Loop for 10000 times and
    j = j + i;					// Sum up numbers
  cout << "Summation of integers from 0 through 10000 took ";
  cout << t1.real () << " milliseconds\n";	// Output time since mark
  return 0;					// Return valid competion code
}
