3 ms·
I've done some cursory searching and not found anything, so I'll ask here: what mechanism is used to measure how long it takes to access a specific address in m
by lelandbatey 9y ago
I've done some cursory searching and not found anything, so I'll ask here: what mechanism is used to measure how long it takes to access a specific address in memory?
I assume there is some way to tell the CPU "when memory location X is read, store the current time in register Y" or some such thing. Could anyone share what that mechanism is?
- lucb1e 9y agoElsewhere in the thread, someone asked the same question and got an answer: https://news.ycombinator.com/item?id=16080230 https://news.ycombinator.com/item?id=16080230
- lelandbatey 9y agoThank you for that link! I'll write out the conclusion I came too from reading those comments: Instead of measuring the literal time interval between instructions, the number of cycles between two points is measured (using the RDTSCP instruction).