> in windows how can i convert milli seconds to cpu clock ticks.
Converting is easy. The time unit in Windows is always 100 nano seconds so 1 ms is 10000 in these units. This can be used to specify delays, like in KeSetTimer, KeWaitForSingleObject, KeDelayExecutionThread etc. Remember only to use *negative* values for relative time!
Usually you don’t need to express time in ticks. But if you want to, you can get the tick value with ExQueryTimerResolution.
I googled and i found “KeQueryPerformanceCounter” instruction.
KeQueryPerformanceCounter - as its documentation says - is used to “acquire high resolution … time stamps for time interval measurements”. If this is what you need, use it.
Good luck.
– pa