Timing¶
- execution_time(df)¶
Calculate the total execution time of a session in milliseconds, without taking pauses into account. This is the same as the total time from the first to the last event registered for the session.
- Parameters:
df (pd.DataFrame) – DataFrame containing ‘timeStamp’ column.
- Returns:
Total execution time in milliseconds for each session.
- Return type:
dict
- movement_time(df, traces=None)¶
Calculate the total movement time from traces in milliseconds, taking pauses into account. This is the same as the interval of time the user is interacting with the interface.
- Parameters:
df (pd.DataFrame) – DataFrame containing ‘timeStamp’ column.
traces (dict) – Dictionary with sessionId as keys and list of DataFrames as values.
- Returns:
A dictionary with sessionId as keys and total movement time in milliseconds as values.
- Return type:
dict