Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remove some obvious errors (= for comparison)

...

Code Block
bgColor#ccccff
double run_big_program ()
{
    clock_t start, finish;
    double seconds;
    start = clock();
    if (start == (clock_t)(-1)){
        return -1.0;
    }
    run_long_program();
    finish = clock();
    if (finish == (clock_t)(-1)){
        return -1.0;
    }
    seconds = (double) (finish-start)/CLOCKS_PER_SEC;
    return seconds;
}

...