/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <math.h>
#include <time.h>

const int N = 1000000;

int main()
{
    int i;
    clock_t t1,t2;
    t1 = clock();
    for(i = 0; i < N; i++)
    {
        sqrt((double)i);
    }
    t2 = clock();
    printf("sqrt: %f\n", (t2 - t1)*1.0/CLOCKS_PER_SEC);
}
