Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / counter.cs / 1305376 / 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() { } ////// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SHA256Cng.cs
- SoapSchemaImporter.cs
- MissingFieldException.cs
- PointLight.cs
- PolicyLevel.cs
- controlskin.cs
- Validator.cs
- BrowserCapabilitiesCodeGenerator.cs
- StatusBarPanelClickEvent.cs
- DPCustomTypeDescriptor.cs
- UnauthorizedAccessException.cs
- ModelItem.cs
- TagMapInfo.cs
- SQLBinary.cs
- KeyNotFoundException.cs
- SchemaTableColumn.cs
- FlatButtonAppearance.cs
- NameTable.cs
- ListDictionary.cs
- DBAsyncResult.cs
- ObjectTag.cs
- EnumType.cs
- RuntimeHandles.cs
- StaticFileHandler.cs
- WebPartDescription.cs
- TableCell.cs
- WebBrowserSiteBase.cs
- FixedTextContainer.cs
- Icon.cs
- DataServiceOperationContext.cs
- SelectionList.cs
- SafeRegistryHandle.cs
- CngKey.cs
- ListenerSingletonConnectionReader.cs
- Stylus.cs
- FormsAuthenticationTicket.cs
- FormsAuthenticationUser.cs
- ProvideValueServiceProvider.cs
- UInt16.cs
- SourceLocationProvider.cs
- PowerEase.cs
- AccessibleObject.cs
- UInt64Storage.cs
- StatusStrip.cs
- XmlExtensionFunction.cs
- Instrumentation.cs
- SqlRowUpdatingEvent.cs
- DataGridViewControlCollection.cs
- SafeViewOfFileHandle.cs
- SQLUtility.cs
- NavigationProgressEventArgs.cs
- OleTxTransaction.cs
- EventWaitHandleSecurity.cs
- DesignSurfaceCollection.cs
- InstanceDescriptor.cs
- WebPartsPersonalization.cs
- DefaultClaimSet.cs
- Part.cs
- InstanceNotReadyException.cs
- ReflectionPermission.cs
- ButtonAutomationPeer.cs
- InputScopeConverter.cs
- LocalizationComments.cs
- CapabilitiesAssignment.cs
- SimpleTypesSurrogate.cs
- CompositeScriptReference.cs
- XmlIgnoreAttribute.cs
- DataTableTypeConverter.cs
- DataGridViewRowCollection.cs
- TypedReference.cs
- DataGridTextBoxColumn.cs
- EventProviderWriter.cs
- NullReferenceException.cs
- Polygon.cs
- ScalarType.cs
- JoinElimination.cs
- DescendentsWalker.cs
- X509ChainElement.cs
- StretchValidation.cs
- ControlBuilder.cs
- HostedHttpContext.cs
- ColorInterpolationModeValidation.cs
- SqlDataSourceEnumerator.cs
- AuthenticationManager.cs
- OdbcStatementHandle.cs
- RawStylusSystemGestureInputReport.cs
- ObjectStateFormatter.cs
- OletxResourceManager.cs
- WhereQueryOperator.cs
- CollectionViewGroupInternal.cs
- SByteConverter.cs
- uribuilder.cs
- DeclarativeCatalogPart.cs
- recordstatefactory.cs
- UseManagedPresentationElement.cs
- DomainConstraint.cs
- SafeReversePInvokeHandle.cs
- SqlNodeAnnotations.cs
- ListItem.cs
- ConfigXmlComment.cs