摘要: C/C++中,计算算法时间方法各异,不同系统平台提供系统调用接口可能不一样。 使用clock() clock()获取从程序启动到调用时,CPU计时时间,精度CLOCKS_PER_SEC。 CLOCKS_PER_SEC也是每个CPU计数所代表的时间含义,比如CLOCKS_PER_SEC为1000,代表 阅读全文
posted @ 2021-12-06 09:34 明明1109 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: 条款41:了解隐式接口和编译期多态 Understand implicit interfaces and compile-time polymorphism. 显式接口和运行期多态 面向对象编程中,以显式接口(explicit interface)和运行期多态(runtime polymorphis 阅读全文
posted @ 2021-12-06 08:55 明明1109 阅读(248) 评论(0) 推荐(0) 编辑