博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
c语言获取执行时间 clock t c1 = clock()
阅读量:3935 次
发布时间:2019-05-23

本文共 283 字,大约阅读时间需要 1 分钟。

T = Initialize();clock_t c1 = clock();i = 10000000;while (i > 0)    T = Insert(T, i--);i = 5000001;while (i < 10000000)    T = Insert(T, i++);i = 10000000;while (i > 100)    T = Remove(T, i--);Travel(T);Destroy(T);clock_t c2 = clock();printf("\n用时: %lu秒\n",(c2 - c1)/CLOCKS_PER_SEC);

转载地址:http://kuegn.baihongyu.com/

你可能感兴趣的文章
how to move pivot to origin
查看>>
Optimizate objective function in matrix
查看>>
Convert polygon faces to triangles or quadrangles
查看>>
How do I divide matrix elements by column sums in MATLAB?
查看>>
read obj in matlab
查看>>
find out the neighbour matrix of a mesh
查看>>
Operators and special characters in matlab
查看>>
As-Conformal-As-Possible Surface Registration
查看>>
qmake Variable Reference
查看>>
Lesson 2 Gradient Desent
查看>>
find border vertex
查看>>
matlab sliced variable
查看>>
create symbolic array
查看>>
TAUCS库的编译(vs2010)
查看>>
color vector using in plotting example points and lines between corresponding vertices
查看>>
mex 里面调用matlab函数
查看>>
matlab中cuda编程中分配grid和block dimension的时候的注意事项
查看>>
GPU CUDA and MEX Programming
查看>>
arrayfun用法
查看>>
矩阵积分
查看>>