(imported topic written by MacDaddyNeal91)
Greetings.
I am working on modifying our dashboard to show the relevance evaluation runtime. We have customized our dashboard and I have been tasked with trying to optimize the relevance to speed up the refresh time.
I’m thinking that I may have to write a timer function to calculate the start time, stop time and then the difference. and then call this function prior to each relevance statement and then again at the conclusion of each relevance statement.
Does anyone know if BF has this ability built-in already? For example the following relevance from the dashboard is used to return the AD distinguished name for the client:
<?relevance if (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine" of registry ) then (if (exists((value "Distinguished-Name" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine" of registry) as string)) then (if (exists((value "Distinguished-Name" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine" of registry) as string)) then ((concatenation " / " of (substrings separated by "," of (following text of first "," of ((value "Distinguished-Name" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine" of registry) as string))))) else ("N/A")) else ("N/A")) else ("N/A") ?>What I am looking for is to append to the relevance answer something like " (364.28 ms)" to let me know how long it took to determine the answer to the relevance.
Thoughts, suggestions, ideas?