Commit 6fb55af2 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL

Update ticks/sec factor

Don't use draft ANSI name CLK_TCK, use C90's brand new CLOCKS_PER_SEC.
parent 62fdf168
......@@ -206,7 +206,7 @@ extern os_error *i_am_now_active( void );
*/
action_environment env;
const char *last_top_info_field;
static clock_t doings_time = (10*CLK_TCK)/100;
static clock_t doings_time = (10*CLOCKS_PER_SEC)/100;
static int UpdatePath = 0, UpdateTop = 0, UpdateBottom = 0;
#define Number_Of_Actions 10
......@@ -299,7 +299,7 @@ static void hide_faster_stuff( action_environment *env );
*/
void switch_dbox_on_off( action_environment *env, int direction, int delay )
{
env->time_to_boxchange = clock() + (delay * CLK_TCK)/100;
env->time_to_boxchange = clock() + (delay * CLOCKS_PER_SEC)/100;
env->boxchange_direction = direction;
}
......@@ -717,7 +717,7 @@ static os_error *start_operation( action_environment *env, actions_possible oper
if (options & Option_FilerAction_Faster)
{
env->faster = Yes;
doings_time = CLK_TCK; /* 1 second */
doings_time = CLOCKS_PER_SEC; /* 1 second */
hide_faster_stuff( env );
}
......@@ -890,12 +890,12 @@ void toggle_faster( action_environment *env )
copy_go_faster( env->faster );
if ( env->faster )
{
doings_time = CLK_TCK; /* 1 second */
doings_time = CLOCKS_PER_SEC; /* 1 second */
hide_faster_stuff( env );
}
else
{
doings_time = (10*CLK_TCK)/100; /* 1/10 second */
doings_time = (10*CLOCKS_PER_SEC)/100; /* 1/10 second */
show_faster_stuff( env );
}
menu_setflags( env->option_menu, 1, env->faster, menus_greyed[ start_up_details[ env->operation ].men ][ 0 ] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment