@All
While fighting with some bug find out that on newlib (and probabaly clib2) clock()/CLOCKS_PER_SEC behave weird, there are test case:
#include <stdio.h>
#include <time.h>
int main()
{
int lastSentTime = -10;
lastSentTime = clock()/CLOCKS_PER_SEC;
printf("lastSentTime = %d\n", lastSentTime);
}
On newlib we have : 12645297 , that cleary broken
On clib2 we have 894 on sam460 and 973 on x5k, so not sure if it correct or not, but seems also not.
If i build the same test case on Cygwin/x86, then result is "0". If i build the same test case over VBCC for 68k, and run on X5000, then result is also "0".
Can anyone comment about ?