If you want to wait for a period of time before executing some code, I'd suggest you use the sleep() method. You're code is putting the application into a high-demand loop for that period of time (using 100% of core/cpu).
clock() - start == delay is likely to never be true. Think more about the flow of logic you want to have in your application and design it accordingly.
It'd also be helpful if you told us what your application is suppose to do. It's currently got very poor indentation which makes the flow of logic hard to follow.
Your loop should look like this (this is only regarding formatting):
1 2 3 4 5 6
while (primary==0)
{
if (amount>=1 && turn==0)turn++;
if (amount>=2 && turn==1)turn++;
if (amount>=3 && turn==2)turn-=2;
}
There are few things that can make source code more unreadable than braces (both curly and regular ones).
Avoid them whenever possible. The same goes for vast amounts of unnecessary whitespace.