I am trying to learn how to use clock(). Here is a piece of code that i have

```
int main()
{
    srand(time(NULL));
    clock_t t;
    int num[100000];
    int total=0;
    t=clock();
    cout<<"tick:"<<t<<endl;
    for (int i=0;i<100000;i++)
    {
        num[i]=rand();
        //cout<<num[i]<<endl;
    }
    for(int j=0;j<100000;j++)
    {
        total+=num[j];
    }
    t=clock();
    cout<<"total:"<<total<<endl;
    cout<<"ticks after loop:"<<t<<endl;
    //std::cout<<"The number of ticks for the loop to caluclate total:"<<t<<"\t time is seconds:"<<((float)t)/CLOCKS_PER_SEC<<endl;
    cin.get();
}

```

The result that i get is in below image. I don't understand why the tick count are same even though there are two big loops in between.

![result](https://i.stack.imgur.com/JiNC7.jpg)