Time measure method

#include< iostream >
#include< ctime >

using namespace std;
int main(void)
{

    //clock_t = long
    const clock_t START = clock();
    clock_t sleeptime = clock() + 3*CLOCKS_PER_SEC;


    //sleep three seconds
    while(clock()< sleeptime) ;

    cout<< (clock()-START )/CLOCKS_PER_SEC<<" sec"<< endl;    
    return 0;
}


您可以使用一些 HTML 標記,例如 <b>, <i>, <a>