Hi,
I have been unable to 'time' how long it takes a Crystal report to run. Hoping someone can tell me why this does not work or have a better idea.
First, I created a hidden formula in the Report Header called Time_Init which contains:
BeforeReadingRecords;
dateTimeVar dtStart := DateTime (CurrentDate, CurrentTime)
Next I created a hidden formula in the report Footer called Time_End which contains:
WhilePrintingRecords;
dateTimeVar dtEnd := DateTime (CurrentDate, CurrentTime)
Last, I created a formula in the Report Footer called Time_Elapsed which contains:
Whileprintingrecords;
EvaluateAfter ({@_TimeEnd});
dateTimeVar dtEnd - dateTimeVar dtStart
Even with maximum decimal places defined I get no results. The report I am testing on takes 2 - 3 minutes to run.
Thanks, Rich
I have been unable to 'time' how long it takes a Crystal report to run. Hoping someone can tell me why this does not work or have a better idea.
First, I created a hidden formula in the Report Header called Time_Init which contains:
BeforeReadingRecords;
dateTimeVar dtStart := DateTime (CurrentDate, CurrentTime)
Next I created a hidden formula in the report Footer called Time_End which contains:
WhilePrintingRecords;
dateTimeVar dtEnd := DateTime (CurrentDate, CurrentTime)
Last, I created a formula in the Report Footer called Time_Elapsed which contains:
Whileprintingrecords;
EvaluateAfter ({@_TimeEnd});
dateTimeVar dtEnd - dateTimeVar dtStart
Even with maximum decimal places defined I get no results. The report I am testing on takes 2 - 3 minutes to run.
Thanks, Rich