?? tu_timer.h
字號(hào):
// 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:
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -