clear
tic
tmaks=10000;
t=[1:tmaks]';
y=cos(t);
toc