GetMicrosecondCounter()
From NWN Lexicon
Jump to navigationJump to searchReturns the current microsecond counter value.
Description
Returns the current microsecond counter value. This value is meaningless on its own, but can be subtracted from other values returned by this function in the same script to get high resolution elapsed time:
// int nMicrosecondsStart = GetMicrosecondCounter();
// DoSomething();
// int nElapsedMicroseconds = GetMicrosecondCounter() - nMicrosecondsStart;
// DoSomething();
// int nElapsedMicroseconds = GetMicrosecondCounter() - nMicrosecondsStart;
Remarks
Version
This function was added in 1.86.8193.35 of NWN:EE.
Example
See Also
functions: |
DelayCommand() GetScriptInstructionsRemaining() GetTickRate() |
author: Shadguy