3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is part of the SourceMod/SourcePawn SDK. This file may only be used
8 * or modified under the Terms and Conditions of its License Agreement, which is found
9 * in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
10 * may change at any time. To view the latest information, see:
11 * http://www.sourcemod.net/license.php
16 #if defined _profiler_included
19 #define _profiler_included
22 * ONLY AVAILABLE ON WINDOWS RIGHT NOW K.
26 * Creates a new profile object. The Handle must be freed
27 * using CloseHandle().
29 * @return Handle to the profiler object.
31 native Handle:CreateProfiler();
36 * @param prof Profiling object.
38 * @error Invalid Handle.
40 native StartProfiling(Handle:prof);
45 * @param prof Profiling object.
47 * @error Invalid Handle or profiling was never started.
49 native StopProfiling(Handle:prof);
52 * Returns the amount of high-precision time in seconds
53 * that passed during the profiler's last start/stop
56 * @param prof Profiling object.
57 * @return Time elapsed in seconds.
58 * @error Invalid Handle.
60 native Float:GetProfilerTime(Handle:prof);