Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to set the Measure the time ,backgroup color and text color? Posted by anyman on 31 Dec 2004 at 6:51 AM
This message was edited by anyman at 2004-12-31 10:11:58

How to set the Measure the time of programe running ,backgroup color and text color?


THX!!!!!!!!
Report
Re: How to set the Measure the time ,backgroup color and text color? Posted by scorpionxx7 on 1 Jan 2005 at 9:31 PM
uses hjwincrt;
var
   h,m,s,ms:word;
   time1,time2:real;
   x:longint;
begin
   gettime(h,m,s,ms);
   time1:=h*3600+m*60+s+s/100;
   for x:=1 to 100000000 do;
   gettime(h,m,s,ms);
   time2:=h*3600+m*60+s+s/100;  {this gives the change in time}
   bkcolorRGB(0,0,250);    {blue background, red text}
   textcolorRGB(250,0,0);  {the values must be 0-255}   
   writeln(time2-time1); 
   readln;
end.

this is for pascal for windows, but dos should be somewhat similar





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.