示例#1
0
文件: profiler.c 项目: BUGgs/FreeRDP
void profiler_print(PROFILER* profiler)
{
	double elapsed_sec = stopwatch_get_elapsed_time_in_seconds(profiler->stopwatch);
	double avg_sec = elapsed_sec / (double) profiler->stopwatch->count;
	WLog_INFO(TAG,  "| %-30.30s| %10du | %9f | %9f |",
			  profiler->name, profiler->stopwatch->count, elapsed_sec, avg_sec);
}
示例#2
0
void profiler_print(PROFILER* profiler)
{
	double elapsed_sec = stopwatch_get_elapsed_time_in_seconds(profiler->stopwatch);
	double avg_sec = elapsed_sec / (double) profiler->stopwatch->count;
	
	fprintf(stderr, "| %-30.30s| %10lu | %9f | %9f |\n",
			profiler->name, profiler->stopwatch->count, elapsed_sec, avg_sec);
}