long begin = clock (); printf ("begin: %ld\n", begin); //要测量的程序段 long end = clock (); printf ("end: %ld\n", end);