thanks for your response dsl, unfortunately that doesn't help me
I try to get the time for "every" functions in this way :
while(1)
{
alt_timestamp_start();
int t1 = alt_timestamp();
IOWR_ALTERA_AVALON_PIO_DATA(SIGNAL, 0x00);
int t2 = alt_timestamp();
IOWR_ALTERA_AVALON_PIO_DATA(SIGNAL, 0x01);
int t3 = alt_timestamp();
printf("%u %u\n%u %u\n\n", t1, t2, t3, t4);
t4 = alt_timestamp();
}
and here is what the consoles displays me :
1164 3399
5294 67155888
1129 3074
5014 317099
1124 3054
4944 440449
1129 3119
5034 440119
1144 3074
4994 443629
so it proves me that" IOWR_ALTERA_AVALON_PIO_DATA(..., ...)" never takes the same amount of time
someone know if it is possible to fix a constant time for this function or in general for a function ?
thanks in advance