Measure time using clock()

#include <iostream>
using namespace std;
#include <time.h>
int main()
{
  clock_t start, end;
  start = clock();
  usleep(100000);
  end = clock();
  cout << start << endl;
  cout << end << ':' << CLOCKS_PER_SEC << endl;
}