source: src/commands/com_print_running_time.cpp@ 49f8653

Last change on this file since 49f8653 was dfed1c, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 816 bytes
Line 
1/**
2 * @file com_print_running_time.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Nov 21 11:01:58 2011
5 *
6 * @brief Print the running time of various subsystems of vmg.
7 * Needs vmg to be configured with --enable-debug-output
8 * and --enable-debug-measure-time
9 *
10 */
11
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include <cstdio>
17
18#include "base/command.hpp"
19#include "base/timer.hpp"
20
21using namespace VMG;
22
23class VMGCommandPrintRunningTime : public Command
24{
25public:
26 Request Run(Command::argument_vector arguments)
27 {
28 MPE_EVENT_BEGIN()
29
30 Timer::Print();
31
32 MPE_EVENT_END()
33
34 return Continue;
35 }
36
37 static const char* Name() {return "PrintRunningTime";}
38 static int Arguments() {return 0;}
39};
40
41CREATE_INITIALIZER(VMGCommandPrintRunningTime)
Note: See TracBrowser for help on using the repository browser.