I like to share following code which Prints Start and End Time to a log file.
<font class="small">Code:</font><hr /><pre>
// Start Time
char *sStartTime = NULL;
sStartTime = DATE_TIME("%I:%M:%S");
// End Time
char *sEndTime = NULL;
sEndTime = DATE_TIME("%I:%M:%S");
// Print Start And End Time to a log file
SCRIPT_MESSAGE("Start And End Time:", sStartTime + ";" + sEndTime);
Thanks Prashant. Maybe we should see about getting a sticky code exchange thread for this forum.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)