Hi. I have problem with time function. I try measure time need to sort array using bubble sort. I using float type but I cant get ant values after dot.
time() usually has a resolution of one second.
To get better resolution you need to use clock() instead as lastchance shows.
These days it typically has at least microsecond resolution (i.e., CLOCKS_PER_SEC is at least a million).