#include <config.h>
#include <version.h>
#include <SDL_image.h>
#include <physfs.h>
#include <iostream>
#include <binreloc.h>
#include <tinygettext/log.hpp>
#include <boost/format.hpp>
#include <findlocale.h>
#include "supertux/main.hpp"
#include "addon/addon_manager.hpp"
#include "audio/sound_manager.hpp"
#include "control/joystickkeyboardcontroller.hpp"
#include "math/random_generator.hpp"
#include "physfs/ifile_stream.hpp"
#include "physfs/physfs_sdl.hpp"
#include "physfs/physfs_file_system.hpp"
#include "scripting/squirrel_util.hpp"
#include "supertux/gameconfig.hpp"
#include "supertux/globals.hpp"
#include "supertux/player_status.hpp"
#include "supertux/screen_manager.hpp"
#include "supertux/resources.hpp"
#include "supertux/title_screen.hpp"
#include "util/file_system.hpp"
#include "util/gettext.hpp"
#include "video/drawing_context.hpp"
#include "worldmap/worldmap.hpp"
Go to the source code of this file.
Defines | |
#define | WRITEDIR_NAME "." PACKAGE_NAME |
Functions | |
static void | timelog (const char *component) |
Variables | |
DrawingContext * | context_pointer |
static Uint32 | last_timelog_ticks = 0 |
static const char * | last_timelog_component = 0 |
#define WRITEDIR_NAME "." PACKAGE_NAME |
static void timelog | ( | const char * | component | ) | [inline, static] |
Definition at line 560 of file main.cpp.
References last_timelog_component, last_timelog_ticks, and log_info.
Referenced by Main::run().
00561 { 00562 Uint32 current_ticks = SDL_GetTicks(); 00563 00564 if(last_timelog_component != 0) { 00565 log_info << "Component '" << last_timelog_component << "' finished after " << (current_ticks - last_timelog_ticks) / 1000.0 << " seconds" << std::endl; 00566 } 00567 00568 last_timelog_ticks = current_ticks; 00569 last_timelog_component = component; 00570 }
DrawingContext* context_pointer [static] |
const char* last_timelog_component = 0 [static] |
Uint32 last_timelog_ticks = 0 [static] |