summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c')
-rw-r--r--MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
index 0c79b21f6f..d06cd0f399 100644
--- a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
+++ b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
@@ -1,7 +1,7 @@
/** @file
A non-functional instance of the Timer Library.
- Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
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
@@ -111,3 +111,24 @@ GetPerformanceCounterProperties (
return (UINT64)(-1);
}
+
+/**
+ 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
+ )
+{
+ ASSERT (FALSE);
+ return 0;
+}