Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- WpfKnownType.cs
- sapiproxy.cs
- TdsParserSafeHandles.cs
- WebPartEditorOkVerb.cs
- VectorAnimationBase.cs
- SwitchAttribute.cs
- TextDecorationCollectionConverter.cs
- RangeValidator.cs
- ParentUndoUnit.cs
- ClientSponsor.cs
- BamlRecords.cs
- WebPartUserCapability.cs
- CodeAttributeDeclarationCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- BooleanExpr.cs
- PersistenceProviderElement.cs
- DocumentViewerAutomationPeer.cs
- SqlInternalConnectionTds.cs
- BaseCodeDomTreeGenerator.cs
- PanelDesigner.cs
- ListDictionary.cs
- DictionaryMarkupSerializer.cs
- BStrWrapper.cs
- PropertyRecord.cs
- BorderGapMaskConverter.cs
- TypeNameHelper.cs
- ConstraintEnumerator.cs
- SplitterCancelEvent.cs
- ReflectEventDescriptor.cs
- StringSource.cs
- WhileDesigner.cs
- ImageListStreamer.cs
- Crc32Helper.cs
- DesignerActionItemCollection.cs
- VirtualizedCellInfoCollection.cs
- Input.cs
- GeometryModel3D.cs
- NetworkAddressChange.cs
- DockPatternIdentifiers.cs
- X509ServiceCertificateAuthenticationElement.cs
- CodeCatchClauseCollection.cs
- ExceptionValidationRule.cs
- CommandManager.cs
- LayoutUtils.cs
- versioninfo.cs
- FlowLayoutSettings.cs
- DocumentXPathNavigator.cs
- PolyBezierSegment.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ContentElement.cs
- LogicalMethodInfo.cs
- PropertyChangedEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- ProfileEventArgs.cs
- __ComObject.cs
- DelayLoadType.cs
- SessionStateSection.cs
- EventHandlingScope.cs
- Int32AnimationUsingKeyFrames.cs
- XmlSchemaObject.cs
- XmlSerializerFactory.cs
- ThemeDictionaryExtension.cs
- ParserContext.cs
- CorrelationToken.cs
- _SingleItemRequestCache.cs
- FrameworkContextData.cs
- BindingValueChangedEventArgs.cs
- RotateTransform3D.cs
- PerformanceCounterManager.cs
- KeyGesture.cs
- EndPoint.cs
- IntAverageAggregationOperator.cs
- XmlExpressionDumper.cs
- ping.cs
- SafeNativeMethodsMilCoreApi.cs
- CharKeyFrameCollection.cs
- SQLDecimalStorage.cs
- EdmValidator.cs
- DataSet.cs
- PolicyException.cs
- HttpRuntime.cs
- XmlComment.cs
- ArgumentValueSerializer.cs
- ObsoleteAttribute.cs
- Root.cs
- SvcMapFile.cs
- PackageDigitalSignature.cs
- PtsCache.cs
- AttachedProperty.cs
- EventHandlersDesigner.cs
- ClientSettingsSection.cs
- AsyncContentLoadedEventArgs.cs
- HttpPostLocalhostServerProtocol.cs
- SimpleHandlerBuildProvider.cs
- ToRequest.cs
- LinqToSqlWrapper.cs
- TempFiles.cs
- DateTime.cs
- FontNameEditor.cs
- DataObjectSettingDataEventArgs.cs