X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FTimerLib.h;h=ecc3ad3ff79ec7b69a7004f667d12035126f0a0d;hp=e24342e1f6cbd049a0f4a6ac8820e4b619e73479;hb=8596c140907ebfeabf62427686280666a4e04893;hpb=718715141abc0253f369ca55cce3b69c82913ee2 diff --git a/MdePkg/Include/Library/TimerLib.h b/MdePkg/Include/Library/TimerLib.h index e24342e1f6..ecc3ad3ff7 100644 --- a/MdePkg/Include/Library/TimerLib.h +++ b/MdePkg/Include/Library/TimerLib.h @@ -1,8 +1,8 @@ /** @file Provides calibrated delay and performance counter services. -Copyright (c) 2006 - 2008, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -94,4 +94,21 @@ GetPerformanceCounterProperties ( OUT UINT64 *EndValue OPTIONAL ); +/** + Converts elapsed ticks of performance counter to time in nanoseconds. + + This function converts the elapsed ticks of running performance counter to + time value in unit of nanoseconds. + + @param Ticks The number of elapsed ticks of running performance counter. + + @return The elapsed time in nanoseconds. + +**/ +UINT64 +EFIAPI +GetTimeInNanoSecond ( + IN UINT64 Ticks + ); + #endif