The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Compuware QALoad

Pages: 1
ppat7046
Active Member


Reged: 02/01/01
Posts: 785
Loc: USA
Print Start and End Time to a log file
      #636484 - 07/28/10 05:58 AM

Friends,

I like to share following code which Prints Start and End Time to a log file.

Code:

// 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);

free(sStartTime);
free(sEndTime);



--------------------
Thanks,
Prashant Patel


Post Extras: Print Post   Remind Me!   Notify Moderator  
drazle
Active Member


Reged: 11/30/00
Posts: 829
Loc: Michigan, USA
Re: Print Start and End Time to a log file [Re: ppat7046]
      #636491 - 07/28/10 06:35 AM

Thanks Prashant. Maybe we should see about getting a sticky code exchange thread for this forum.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  AJ, DSquared 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 1819

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5