What would be the smallest unit of time that currently can be measured using ordinary computers?
As far as I know, based on the computer clock they are milliseconds.
What would be the smallest unit of time that currently can be measured using ordinary computers?
As far as I know, based on the computer clock they are milliseconds.
As fast as you can, nanoseconds and Maximum resolution depends on processor :
#include <sys/time.h>
int main()
{
timespec ts;
// clock_gettime(CLOCK_MONOTONIC, &ts); // Para FreeBSD
clock_gettime(CLOCK_REALTIME, &ts); // Para Linux
}