Calculating time taken in uefi application. #5
ayushdas2000
started this conversation in
General
Replies: 1 comment 11 replies
-
Tried a lot of things like printing in nanosecs and as string but always getting 0. Any other approach would also help. Thanks |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Kostr. Thanks for the lessons first.I want to calculate how much time does my application take to run. I am trying to use ticks to calculate time elapsed. Basically this using the PerformanceLib and TimerLib :
Frequency = GetPerformanceCounterProperties(NULL, NULL);
StartTick = GetPerformanceCounter();
EndTick = GetPerformanceCounter();
ElapsedTicks = EndTick > StartTick ? EndTick - StartTick : StartTick - EndTick;
TimeInSeconds = (double)ElapsedTicks / Frequency;
I am getting 0 seconds everytime. Any leads for this ? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions