report.pl does not report correct time if result file is copied
at15 opened this issue · 0 comments
at15 commented
I am using git to synchronous benchmark result from virtual box to the host because I want to track the changes I made to configuration files, however I found when run report.pl <result-file>
, I got different result in vm and host. I don't know perl, but I believe the script is using the create time
of the result file as the start time of the bechmark, which is only true when you don't copy the result file.
The code that print the date is here
printf "\n********************************************************************************************************\n";
printf "# File : %-20s : %20s\n", $file,ctime((stat($file))[9]);
print "# THESE ARE PARTIAL STATISTICS\n" if( $cf->getResultField("OSSim","reportName") =~ /signal/i );
A possible solution is to use the beginTime
and EndTime
in the result file, i.e.
#END Configuration used. Extracted from "esesc.conf":
OSSim:reportName=done
OSSim:beginTime=Tue Jan 24 20:12:21 2017
OSSim:endTime=Tue Jan 24 20:19:58 2017