Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Util / counter.cs / 1 / counter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Util { using System; using System.Web; using System.Runtime.InteropServices; ////// internal sealed class Counter { ///Provides access to system timers. ////// not creatable /// private Counter() { } #if UNUSED_CODE internal static float Time(long start) { long time = Value - start; return time / (float)Frequency; } #endif ////// Gets the current system counter value. /// internal static long Value { get { long count = 0; SafeNativeMethods.QueryPerformanceCounter(ref count); return count; } } ////// Gets the frequency of the system counter in counts per second. /// internal static long Frequency { get { long freq = 0; SafeNativeMethods.QueryPerformanceFrequency(ref freq); return freq; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IntegrationExceptionEventArgs.cs
- StrokeNodeOperations2.cs
- ExcludePathInfo.cs
- FormsAuthenticationCredentials.cs
- SByte.cs
- BindingUtils.cs
- XmlSerializer.cs
- WebRequestModuleElementCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- KeyValueConfigurationElement.cs
- HtmlLinkAdapter.cs
- DataRow.cs
- TypefaceMap.cs
- SymbolPair.cs
- InkPresenter.cs
- IncrementalCompileAnalyzer.cs
- SafeReversePInvokeHandle.cs
- TerminatorSinks.cs
- CursorConverter.cs
- XmlDocumentType.cs
- ImageMap.cs
- GeneralTransform3DGroup.cs
- AspNetHostingPermission.cs
- BigInt.cs
- VerificationException.cs
- AdapterDictionary.cs
- InternalDispatchObject.cs
- DataGrid.cs
- _ChunkParse.cs
- TranslateTransform.cs
- TokenBasedSet.cs
- DetailsViewRow.cs
- CodeSnippetTypeMember.cs
- updatecommandorderer.cs
- ActivityBindForm.cs
- ProfessionalColorTable.cs
- ClrPerspective.cs
- EntityDataSourceWrapperCollection.cs
- Switch.cs
- XmlSchemaSimpleTypeList.cs
- FontEditor.cs
- ButtonBaseDesigner.cs
- RelatedCurrencyManager.cs
- TransformPatternIdentifiers.cs
- FrameworkContentElementAutomationPeer.cs
- SoapEnumAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- OperationContext.cs
- Site.cs
- DbgUtil.cs
- LocalFileSettingsProvider.cs
- DataSourceCache.cs
- PersonalizationEntry.cs
- COM2PropertyBuilderUITypeEditor.cs
- CodeEntryPointMethod.cs
- HMAC.cs
- TableRow.cs
- BindStream.cs
- Adorner.cs
- ProcessHostConfigUtils.cs
- Line.cs
- ProbeRequestResponseAsyncResult.cs
- DataGridColumnHeadersPresenter.cs
- DataContract.cs
- SetterBaseCollection.cs
- CollectionViewGroupRoot.cs
- ImportFileRequest.cs
- ApplicationId.cs
- HtmlInputHidden.cs
- KeyConverter.cs
- CodeAttributeArgumentCollection.cs
- CodeRegionDirective.cs
- initElementDictionary.cs
- NamedPipeHostedTransportConfiguration.cs
- ReadOnlyNameValueCollection.cs
- ParsedAttributeCollection.cs
- CollectionEditor.cs
- BaseCodeDomTreeGenerator.cs
- GridView.cs
- DataRow.cs
- DecodeHelper.cs
- ScriptingSectionGroup.cs
- TypeConverterHelper.cs
- DocumentAutomationPeer.cs
- UnitySerializationHolder.cs
- DataObjectCopyingEventArgs.cs
- StartFileNameEditor.cs
- FontCacheLogic.cs
- diagnosticsswitches.cs
- TextCompositionEventArgs.cs
- AnimationClockResource.cs
- FilteredSchemaElementLookUpTable.cs
- RecordBuilder.cs
- BitStream.cs
- DocumentReferenceCollection.cs
- AppDomainShutdownMonitor.cs
- LiteralDesigner.cs
- Soap12ServerProtocol.cs
- PrinterSettings.cs
- CodeTryCatchFinallyStatement.cs