r/computerforensics • u/Critical-Ad1972 • Nov 15 '24
SRUM The foreground cycle time
I have a windows 10 computer and I try to analyze how often an application was used. I saw that there is quite some data in the SRUM.
I want to tell how long a application was used by converting the the foreground cycle time to minutes. Is that possible? Is the value of cycle time in nanoseconds?
Example:

3
Upvotes
3
u/[deleted] Nov 15 '24
use one of your own machines, set up a new executable. use it for a set amount of time, say 1 hour, where you KNOW its in the foreground
reboot
dump srum with srumecmd
see what you get for cycle time
do the math.
if that value is microseconds its like 2290 minutes which is like 38 hours. could be reasonable.
what does userassist say for focustime? use Registry Explorer for that
5
u/KeepinItQuiet Nov 15 '24
I don't know if anyone has researched this one yet.
But, I wrote an article about SRUM that may be useful for what you're looking for, if available for your timeframe of interest. The AppTimelineProvider table in SRUM has additional fields that include "InFocusS" which is the in focus time in seconds. It also includes the length of time for input using Keyboard and Mouse activity in seconds.
3
u/[deleted] Nov 16 '24
From my understanding of the Foreground Cycle Time, it is the total count of CPU cycles used whilst the application is in the foreground.
As CPU clock speeds are variable, only luck would get you a ballpark figure. That would assume the CPU never deviated from a fixed speed (when we know they do switch constantly).
Here is a half decent article I read on it years ago asking the same question. You may need an account to get it: https://www.sciencedirect.com/science/article/abs/pii/S1742287615000031