Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Sign in to follow this  
BryceTheCoder

Show script running time?

Recommended Posts

Hey, I don’t see many time functions...

How can i simple create a start time var and get total time ran in a script?

i have this so far:

start := Time;

but when i try to do this:

total := Time - start;

it doesn’t work :(

Share this post


Link to post
Share on other sites
var
  StartTime: LongInt;      
begin
  StartTime := GetSystemTime;   
  Wait(1000); // Do stuff
  WriteLn(IntToStr(GetSystemTime - StartTime) + 'ms elapsed');
end.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×