時間計測の方法

time.hをインクルードして、clock()という関数を使います。

void main() {
  clock_t start, end;
  start = clock();

  // Some processing

  end = clock();

  printf("time = %.2f", 
        (double)(end - start)/CLOCKS_PER_SEC);
}

こんな感じです。
CLOCKS_PER_SECというのは定数で、一秒当たりの値だそうです。
システムによってことなるみたい。


あと、Windows Onlyのもようです。


C言語-時間の計測
http://www.mm2d.net/c/c-02.shtml