equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\nkern\x86\ncutilf.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <nkern.h> |
|
19 |
|
20 |
|
21 /** Get the current value of the high performance counter. |
|
22 |
|
23 If a high performance counter is not available, this uses the millisecond |
|
24 tick count instead. |
|
25 */ |
|
26 EXPORT_C TUint32 NKern::FastCounter() |
|
27 { |
|
28 return TickCount(); // not implemented for x86 |
|
29 } |
|
30 |
|
31 |
|
32 /** Get the frequency of counter queried by NKern::FastCounter(). |
|
33 */ |
|
34 EXPORT_C TInt NKern::FastCounterFrequency() |
|
35 { |
|
36 return 1000000 / TickPeriod(); // not implemented for x86 |
|
37 } |