flat assembler
Message board for the users of flat assembler.

Index > Windows > about execution time

Author
Thread Post new topic Reply to topic
dacid



Joined: 31 Aug 2008
Posts: 57
dacid 30 Nov 2008, 17:03
I need a easy way to calculate the time that my programs takes to make some operations... something like that:

MyProg v0.1 (c) me

Searching *.exe files in c:\windows

2 file(s) found in xxx minutes xx seconds.


Excuse my limited english skills to explain it.
Post 30 Nov 2008, 17:03
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 30 Nov 2008, 17:05
Code:
invoke GetTickCount    
Post 30 Nov 2008, 17:05
View user's profile Send private message Visit poster's website Reply with quote
dacid



Joined: 31 Aug 2008
Posts: 57
dacid 30 Nov 2008, 17:40
any example ... source code?
Post 30 Nov 2008, 17:40
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 30 Nov 2008, 17:57
Call GetTickcount twice, once at the start and once at the end. Subtract the first result from the second result and print the time to your screen.
Post 30 Nov 2008, 17:57
View user's profile Send private message Visit poster's website Reply with quote
dacid



Joined: 31 Aug 2008
Posts: 57
dacid 30 Nov 2008, 18:48
ok, thx!
Post 30 Nov 2008, 18:48
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.