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
- CorrelationManager.cs
- SqlTriggerAttribute.cs
- TransportConfigurationTypeElement.cs
- HttpConfigurationContext.cs
- CustomLineCap.cs
- RuntimeResourceSet.cs
- DataGridViewTopRowAccessibleObject.cs
- BStrWrapper.cs
- ExtendedPropertyDescriptor.cs
- IisTraceListener.cs
- ListItem.cs
- HMACRIPEMD160.cs
- XmlSchemaComplexContentExtension.cs
- PeerTransportListenAddressConverter.cs
- UIElement.cs
- SmuggledIUnknown.cs
- BasicViewGenerator.cs
- BaseValidatorDesigner.cs
- SessionStateModule.cs
- XmlSchemaImport.cs
- Resources.Designer.cs
- StylusCollection.cs
- ServiceDurableInstance.cs
- Figure.cs
- MediaPlayer.cs
- COM2Enum.cs
- ChtmlFormAdapter.cs
- DeploymentSection.cs
- Splitter.cs
- FontStyle.cs
- DependencyObjectValidator.cs
- ToolStripHighContrastRenderer.cs
- MainMenu.cs
- GuidConverter.cs
- ParserContext.cs
- CLSCompliantAttribute.cs
- StructuralObject.cs
- GlyphingCache.cs
- AuthenticationModuleElement.cs
- SafeArrayTypeMismatchException.cs
- FixedSOMSemanticBox.cs
- TrackBar.cs
- NameValuePermission.cs
- RichTextBoxDesigner.cs
- JavaScriptString.cs
- latinshape.cs
- ClientTarget.cs
- ToolStripScrollButton.cs
- DecimalFormatter.cs
- TextElementEditingBehaviorAttribute.cs
- DataRowChangeEvent.cs
- Rect.cs
- AssemblyAttributes.cs
- DataViewManager.cs
- LockCookie.cs
- DesignerCapabilities.cs
- CellRelation.cs
- CursorInteropHelper.cs
- Native.cs
- SqlNodeAnnotation.cs
- IntegerValidatorAttribute.cs
- Button.cs
- BuildDependencySet.cs
- MaskedTextBoxDesignerActionList.cs
- RestClientProxyHandler.cs
- TabPanel.cs
- ListViewCommandEventArgs.cs
- TdsParserSessionPool.cs
- WebPartTransformer.cs
- ResXResourceSet.cs
- RadioButtonRenderer.cs
- XmlSerializer.cs
- FillRuleValidation.cs
- VectorAnimation.cs
- RuntimeHelpers.cs
- DbBuffer.cs
- ListViewTableRow.cs
- BaseAutoFormat.cs
- Utilities.cs
- XsltContext.cs
- HtmlInputControl.cs
- SecureStringHasher.cs
- RenderData.cs
- PropertyEmitterBase.cs
- CodeLinePragma.cs
- SqlRecordBuffer.cs
- CompilerCollection.cs
- IPPacketInformation.cs
- ConfigurationLocation.cs
- __ComObject.cs
- RegexCode.cs
- SimpleRecyclingCache.cs
- FormsAuthenticationUser.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- XmlSchemaType.cs
- XmlNavigatorFilter.cs
- AffineTransform3D.cs
- AffineTransform3D.cs
- NotConverter.cs
- ConstraintConverter.cs