Old 30th July 2012, 18:36   #1
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
Microtime

for benchmark reason, i'm looking a way to get the current microtime.

example:
code:
${MicroTime} $0
Call SomeFunction
${MicroTime} $1
IntOp $2 $1 - $0
DetailPrint "Processed in $2s"



any ideas, none of the time/date plugins can do that

ps: used Measure-Command, but would be nice to have that for nsis as well
Yathosho is offline   Reply With Quote
Old 30th July 2012, 20:04   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Call the QueryPerformanceCounter API using the System plug-in then use System::Int64Op to get the difference.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
benchmark, interval, microtime, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump