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
- MSAAWinEventWrap.cs
- SchemaEntity.cs
- SafeProcessHandle.cs
- SystemBrushes.cs
- TextEditorTables.cs
- SystemKeyConverter.cs
- TextTreeUndoUnit.cs
- ConstNode.cs
- UIPropertyMetadata.cs
- UrlAuthFailureHandler.cs
- ReadContentAsBinaryHelper.cs
- OdbcConnectionString.cs
- ParserExtension.cs
- DataGridViewDataErrorEventArgs.cs
- Utilities.cs
- CodeTypeReferenceExpression.cs
- GraphicsContext.cs
- WindowExtensionMethods.cs
- StandardMenuStripVerb.cs
- QueryAccessibilityHelpEvent.cs
- XPathAncestorIterator.cs
- FontDriver.cs
- basemetadatamappingvisitor.cs
- ParallelDesigner.xaml.cs
- TryCatchDesigner.xaml.cs
- latinshape.cs
- ClientScriptManager.cs
- LineMetrics.cs
- WmlPanelAdapter.cs
- DataGridViewButtonCell.cs
- FamilyCollection.cs
- Parser.cs
- DetailsViewInsertedEventArgs.cs
- DesignerCatalogPartChrome.cs
- ParameterSubsegment.cs
- CustomErrorCollection.cs
- TraceUtils.cs
- DataGridViewTopLeftHeaderCell.cs
- DialogResultConverter.cs
- SolidColorBrush.cs
- ConnectorSelectionGlyph.cs
- ApplicationDirectoryMembershipCondition.cs
- RadioButton.cs
- SqlGatherProducedAliases.cs
- RoutedUICommand.cs
- FacetEnabledSchemaElement.cs
- QilScopedVisitor.cs
- ReadContentAsBinaryHelper.cs
- HebrewNumber.cs
- Geometry3D.cs
- ParserStack.cs
- AssociatedControlConverter.cs
- ByteKeyFrameCollection.cs
- ShapingEngine.cs
- CodeAttachEventStatement.cs
- Type.cs
- AncillaryOps.cs
- CodeSubDirectory.cs
- XmlSchemaGroup.cs
- MsmqException.cs
- UiaCoreProviderApi.cs
- OdbcConnectionPoolProviderInfo.cs
- ColorConvertedBitmap.cs
- TreeIterators.cs
- HierarchicalDataSourceControl.cs
- ContractsBCL.cs
- FormViewUpdatedEventArgs.cs
- PenLineJoinValidation.cs
- HiddenField.cs
- AuthenticationModuleElement.cs
- SqlDataSourceView.cs
- HandleCollector.cs
- PlatformNotSupportedException.cs
- RectangleF.cs
- TabControlAutomationPeer.cs
- Assert.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SimpleWebHandlerParser.cs
- EventDriven.cs
- DataGridViewSelectedColumnCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- ScriptingWebServicesSectionGroup.cs
- RecipientInfo.cs
- SemanticResultKey.cs
- StartUpEventArgs.cs
- StrongNameKeyPair.cs
- AdornerPresentationContext.cs
- OleStrCAMarshaler.cs
- _UriSyntax.cs
- ProxyGenerationError.cs
- CachedTypeface.cs
- ErrorEventArgs.cs
- RtType.cs
- GeneralTransform2DTo3DTo2D.cs
- GridViewColumnHeaderAutomationPeer.cs
- Package.cs
- Run.cs
- TaskExceptionHolder.cs
- SecurityTraceRecordHelper.cs
- Win32Native.cs