⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tu_timer.h

📁 一个开源的Flash 播放器,可以在Windows/Linux 上运行
💻 H
字号:
// tu_timer.h	-- by Thatcher Ulrich <tu@tulrich.com>// This source code has been donated to the Public Domain.  Do// whatever you want with it.// Utility/profiling timer.#ifndef TU_TIMER_H#include "base/tu_types.h"namespace tu_timer{	// General-purpose wall-clock timer.  May not be hi-res enough	// for profiling.	uint64 get_ticks();	double ticks_to_seconds(uint64 ticks);		// Hi-res timer for CPU profiling.	// Return a hi-res timer value.  Time 0 is arbitrary, so	// generally you want to call this at the start and end of an	// operation, and pass the difference to	// profile_ticks_to_seconds() to find out how long the	// operation took.	uint64	get_profile_ticks();	// Convert a hi-res ticks value into seconds.	double	profile_ticks_to_seconds(uint64 profile_ticks);};#endif // TU_TIMER_H// Local Variables:// mode: C++// c-basic-offset: 8 // tab-width: 8// indent-tabs-mode: t// End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -