]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellNetwork1CommandsLib/Ia32/Tsc.c
Add Network1 profile.
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork1CommandsLib / Ia32 / Tsc.c
CommitLineData
68fb0527 1/** @file\r
2 The implement to read TSC in IA32 platform.\r
3\r
4 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
5\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include <Library/BaseLib.h>\r
17\r
18/**\r
19 Reads and returns the current value of the Time Stamp Counter (TSC).\r
20\r
21 @return The current value of TSC.\r
22\r
23**/\r
24UINT64\r
25ReadTime ()\r
26{\r
27 return AsmReadTsc ();\r
28}\r