Exemplo n.º 1
0
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
  try
    {
      CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);

      if (runStatic(orb.in()) != 0)
        return -1;

      if (runDynamic(orb.in()) != 0)
        return -1;
  }
  catch (const CORBA::Exception & ex)
    {
      ex._tao_print_exception ("Tests failed with exception");
      return 1;
    }

  return 0;
}
Exemplo n.º 2
0
int main()
{	
	// Start timer
	clock_t start = clock(), diff;

	char* filename = "bigMatrix.txt";
	
	// Determine which version to be run here
	// runStatic(...) or runDynamic(...)
	int error = runStatic(filename);
	
	if(error == -1)
		return -1;

	// Get the speed of the program
	diff = clock() - start;
	int msec = diff * 1000 / CLOCKS_PER_SEC;
	printf("\nTime taken %d seconds %d milliseconds\n", msec/1000, msec%1000);

	pthread_exit(NULL);
	return 0;
}