Messages in this thread | | | Date | Tue, 29 Mar 2005 11:25:12 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: How to measure time accurately. |
| |
>In some cases you can simply count jiffies - depending on how accurate you >need to time things I'd say that often something like this is adequate :
These "some cases" exclude this one: If interrupts are disabled, a jiffy might be missed. Take care.
If you are on UP and want to measure within - a tick [when using preempt] - kernel space [no preempt] disabled interrupts should usually not be the case.
Jan Engelhardt -- No TOFU for me, please. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |