#define DEBUG(x,args...)
#endif
+#define MX_MEASURES 40
+
int main ()
{
- int err;
+ int err, i;
rtep_station_id_t me, normal_station, multicast_station;
frsh_network_address_t frsh_address;
char multicast_name[] = "broadcast";
frsh_contract.preemption_level = 4;
// Negotiate the contract
- time_measure_hwtime_set_timestamp(BEGIN_CONTRACT_NEG);
+ for (i=0; i<MX_MEASURES; i++) {
+ time_measure_hwtime_set_timestamp(BEGIN_CONTRACT_NEG);
- err = rtep_fna_operations.fna_contract_negotiate
- (FRSH_RESOURCE_ID_DEFAULT, &frsh_contract, &vres);
- assert (err == 0);
+ err = rtep_fna_operations.fna_contract_negotiate
+ (FRSH_RESOURCE_ID_DEFAULT, &frsh_contract, &vres);
+ assert (err == 0);
- time_measure_hwtime_set_timestamp(END_CONTRACT_NEG);
+ time_measure_hwtime_set_timestamp(END_CONTRACT_NEG);
+ }
printf("Contract accepted\n");