2020年4月28日

摘要: 测试调用delya()函数所需执行的时间(单位为微妙) #include<stdio.h> #include<sys/time.h> #include<unistd.h> int delay(int time) { int i,j; for(i =0;i<time;i++) for(j=0;j<50 阅读全文

posted @ 2020-04-28 10:53 yacbo 阅读(1474) 评论(0) 推荐(0) 编辑

摘要: 从当前运行的函数中得到函数名,使用__FUNCTION__ 及相关宏。 举例如下 #include <iostream> #include <string> using namespace std; const char* hello() { return __FUNCTION__;//返回函数名 阅读全文

posted @ 2020-04-28 10:51 yacbo 阅读(701) 评论(0) 推荐(0) 编辑


Copyright © 2024 yacbo
Powered by .NET 8.0 on Kubernetes