# HG changeset patch # User peter1138 # Date 2005-12-14 09:15:06 # Node ID 4a0142546d398a72ad7c95604b3c87132404190f # Parent 6b60d5d4934f325e39f0c9a839518dd984ff8eb6 (svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -2159,7 +2159,7 @@ static const byte _search_directions[6][ }; static const byte _pick_track_table[6] = {1, 3, 2, 2, 0, 0}; -#if PF_BENCHMARK +#ifdef PF_BENCHMARK #if !defined(_MSC_VER) unsigned int _rdtsc() { @@ -2188,7 +2188,7 @@ static byte ChooseTrainTrack(Vehicle *v, { TrainTrackFollowerData fd; uint best_track; -#if PF_BENCHMARK +#ifdef PF_BENCHMARK int time = _rdtsc(); static float f; #endif @@ -2259,7 +2259,7 @@ static byte ChooseTrainTrack(Vehicle *v, } } -#if PF_BENCHMARK +#ifdef PF_BENCHMARK time = _rdtsc() - time; f = f * 0.99 + 0.01 * time; printf("PF time = %d %f\n", time, f);