Archive: Microtime


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

example:

${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

Call the QueryPerformanceCounter API using the System plug-in then use System::Int64Op to get the difference.

Stu