c++ cZar
Wednesday, August 4, 2010
Finding time of execution of code in c
#
include
<
time.h
>
clock_t start;
clock_t diff;
clock_t end;
start= clock();
various algorithm;
end = clock();
diff = end - start;
print diff;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment