Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } } // 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
- Int64Storage.cs
- RpcCryptoContext.cs
- StrokeNodeData.cs
- XmlSchemaIdentityConstraint.cs
- ToolZoneDesigner.cs
- PowerModeChangedEventArgs.cs
- HelpEvent.cs
- CollectionViewSource.cs
- FixUpCollection.cs
- Triangle.cs
- UIElementParagraph.cs
- SoapReflectionImporter.cs
- PageCache.cs
- XmlObjectSerializerReadContextComplex.cs
- HtmlControlPersistable.cs
- PersonalizationState.cs
- ValueTable.cs
- WebPartConnectVerb.cs
- PropertyChangedEventManager.cs
- OverflowException.cs
- WebBrowserBase.cs
- XamlPointCollectionSerializer.cs
- TransactedBatchingBehavior.cs
- HtmlInputPassword.cs
- _ScatterGatherBuffers.cs
- CheckBoxBaseAdapter.cs
- InternalRelationshipCollection.cs
- BitHelper.cs
- StaticFileHandler.cs
- ProcessStartInfo.cs
- SqlParameter.cs
- Pair.cs
- BindingManagerDataErrorEventArgs.cs
- EntityContainerEmitter.cs
- ValidateNames.cs
- EntityDataSourceDesigner.cs
- CssClassPropertyAttribute.cs
- MasterPage.cs
- DataList.cs
- UnitControl.cs
- OleDbReferenceCollection.cs
- WebServiceAttribute.cs
- ToolStripDropDownClosingEventArgs.cs
- DataServiceContext.cs
- NetworkInformationException.cs
- MouseCaptureWithinProperty.cs
- RequestCachePolicy.cs
- regiisutil.cs
- ProxyGenerationError.cs
- KerberosSecurityTokenAuthenticator.cs
- ComponentRenameEvent.cs
- DesignerDataSourceView.cs
- ApplicationSecurityInfo.cs
- NetworkStream.cs
- AssemblySettingAttributes.cs
- RedirectionProxy.cs
- ResXBuildProvider.cs
- StdRegProviderWrapper.cs
- ContainerParaClient.cs
- unitconverter.cs
- TemplateNameScope.cs
- LayoutManager.cs
- RectAnimationClockResource.cs
- DoubleLink.cs
- XmlDataSourceView.cs
- StyleSheetComponentEditor.cs
- ConfigurationSettings.cs
- NameValueCollection.cs
- NegationPusher.cs
- MetadataItemSerializer.cs
- BuildProvider.cs
- RtfControlWordInfo.cs
- ErrorStyle.cs
- SizeLimitedCache.cs
- AtomContentProperty.cs
- Peer.cs
- ApplicationFileParser.cs
- DataTrigger.cs
- ToolboxItemCollection.cs
- ProtocolsSection.cs
- Recipient.cs
- PointAnimationBase.cs
- EnumUnknown.cs
- TagPrefixInfo.cs
- XmlObjectSerializerReadContext.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlIlTypeHelper.cs
- ManagementPath.cs
- ApplicationProxyInternal.cs
- SqlUnionizer.cs
- StylusButtonCollection.cs
- InputLangChangeEvent.cs
- ArgIterator.cs
- InputChannel.cs
- QilTypeChecker.cs
- SeparatorAutomationPeer.cs
- SystemWebExtensionsSectionGroup.cs
- ControlBindingsCollection.cs
- KnownAssemblyEntry.cs
- SymmetricKey.cs