summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Time/Time.c
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/LibC/Time/Time.c')
-rw-r--r--StdLib/LibC/Time/Time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/StdLib/LibC/Time/Time.c b/StdLib/LibC/Time/Time.c
index 3192696f4a..5cb9347752 100644
--- a/StdLib/LibC/Time/Time.c
+++ b/StdLib/LibC/Time/Time.c
@@ -1,7 +1,7 @@
/**
Definitions and Implementation for <time.h>.
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 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 that accompanies this distribution.
The full text of the license may be found at
@@ -199,15 +199,15 @@ clock_t
EFIAPI
clock(void)
{
+#ifndef NT32dvm
clock_t temp;
-#ifdef NT32dvm
- temp = 0;
-#else
temp = (clock_t)GetPerformanceCounter();
-#endif /* NT32dvm */
return temp - gMD->AppStartTime;
+#else
+ return (clock_t)-1;
+#endif /* NT32dvm */
}
/**