diff -r 0330fdcbdd1f -r 5f1269a71588 master/master.c --- a/master/master.c Tue Nov 16 15:32:27 2010 +0100 +++ b/master/master.c Mon Nov 22 08:50:34 2010 +0100 @@ -2375,14 +2375,14 @@ void ecrt_master_application_time(ec_master_t *master, uint64_t app_time) { master->app_time = app_time; -#ifdef EC_HAVE_CYCLES - master->dc_cycles_app_time = get_cycles(); -#endif - master->dc_jiffies_app_time = jiffies; if (unlikely(!master->has_app_time)) { EC_MASTER_DBG(master, 1, "set application start time = %llu\n",app_time); master->app_start_time = app_time; +#ifdef EC_HAVE_CYCLES + master->dc_cycles_app_time = get_cycles(); +#endif + master->dc_jiffies_app_time = jiffies; master->has_app_time = 1; } }