Thanks all for help,
I need to know what is a best way to do it, nothing of special, just test some math operations with byte, integer, float and double values with sum, subtraction, division and multiplication, then report in a TextArea the results.
It is not important to get a precise time in nanoseconds, but that results do not continue to change, actually I test Double and Int, sometime Double use more time (like it should be) but sometimes the result is inversed... so no good, Or I need to sample 10 or more values and then get a median point by dividing the total by 10. But not a best way....
I want make this just to compare the CPU speed between two or more computers using java enviroment so in my case to test the math speed B4J apps, even compare these on more Raspberry types, like PI3, PI Zero W, PI4 with PC results.
Can someone help to make this ?
But the problem is that it should use all CPU threads to get resonable results, not only one, so 4, 8, 16, 32 etc depending of used PC.
Many thanks