clock_t elapsed = -clock();
   // measured operation
   elapsed += clock();