Hi , I am searching for a delay function that its duration is one femtosecond. How can I write my code?
Please explain completely by example.
You can't. Consider: a typical modern CPU runs at about 3-4 GHz. This means a single machine instruction takes some
2*10^-10s to execute. You want something that's five orders of magnitude more precise (1 femtosecond =
10^-15 seconds). Your computer simply doesn't have any kind of clock running anywhere near this frequency. You'd need very specialized hardware to measure time with such precision.
8 people are following this question.