ppmd.modules.code_timer module¶
-
class
ppmd.modules.code_timer.LoopTimer¶ Bases:
ppmd.modules.module.ModuleObject to time the runtime of loops. Provides C++ code to be added to the generated code.
-
property
av_time¶ Return the aggregated cpu time.
-
property
cpu_time¶ Return the aggregated cpu time.
-
get_cpp_arguments()¶ Return the code to define arguments to add to the library.
-
get_cpp_arguments_ast()¶ Return the code to define arguments to add to the library.
-
get_cpp_headers()¶ Return the code to include the required header file(s).
-
get_cpp_headers_ast()¶ Return the code to include the required header file(s).
-
get_cpp_post_loop_code()¶ Return the code to place after the loop.
-
get_cpp_post_loop_code_ast()¶ Return the code to place after the loop.
-
get_cpp_pre_loop_code()¶ Return the code to place before the loop.
-
get_cpp_pre_loop_code_ast()¶ Return the code to place before the loop.
-
get_python_parameters()¶ Return the parameters to add to the launch of the shared library.
-
property
time¶ Return the current total time.
-
property