getting number of milliseconds in VBS

Discussion in 'OT Technology' started by AVengeance, May 9, 2005.

  1. AVengeance

    AVengeance Active Member

    Joined:
    Aug 17, 2004
    Messages:
    22,615
    Likes Received:
    0
    Location:
    In my bunker Position:Hunkering
    I'm running a script that reads in records, compares, and writes out matches. I'm trying to find out why my script is running slowly, but I need to view the number of milliseconds between sections of code. I can't use seconds, because the outlying loop occurs 211 times per second. Is there a way to get the milliseconds of "Now"?
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
  3. AVengeance

    AVengeance Active Member

    Joined:
    Aug 17, 2004
    Messages:
    22,615
    Likes Received:
    0
    Location:
    In my bunker Position:Hunkering
    Looks like TickCount is going to work for me.

    What I don't get, is why Millisecond is listed as a property of DateTime, but I can't use it (Tried using month(DateTime.Now), that works, tried second(DateTime.Now), that works, but Millisecond(DateTime.Now) doesn't work, even though it's listed.
     

Share This Page