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

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
  StartTime: LongInt;      
  StartTime := GetSystemTime;   
  Wait(1000); // Do stuff
  WriteLn(IntToStr(GetSystemTime - StartTime) + 'ms elapsed');


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...