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
- CodeTypeDelegate.cs
- FactoryId.cs
- RadioButton.cs
- EnumConverter.cs
- XmlSchemaAppInfo.cs
- UnsafeNativeMethods.cs
- CustomAttributeSerializer.cs
- Label.cs
- ClientFormsAuthenticationCredentials.cs
- OneWayChannelListener.cs
- WmlImageAdapter.cs
- SafeHandles.cs
- TdsParser.cs
- HotSpot.cs
- ExecutionEngineException.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- TaskHelper.cs
- AttachmentCollection.cs
- RequestUriProcessor.cs
- StateMachine.cs
- MessageQueuePermissionEntryCollection.cs
- DefaultClaimSet.cs
- DataGridColumnHeaderAutomationPeer.cs
- WebPartUserCapability.cs
- SupportingTokenChannel.cs
- SqlClientWrapperSmiStreamChars.cs
- EnumerableRowCollectionExtensions.cs
- HttpProtocolReflector.cs
- SizeConverter.cs
- DesignerTextViewAdapter.cs
- EventSinkHelperWriter.cs
- DropTarget.cs
- PropertyChangeTracker.cs
- XmlSchemaSimpleTypeList.cs
- SelectionRange.cs
- TextHidden.cs
- OracleDataAdapter.cs
- PageClientProxyGenerator.cs
- ConfigXmlText.cs
- PropertyToken.cs
- GeneralTransform.cs
- DateTimeOffsetStorage.cs
- SoapObjectInfo.cs
- FormParameter.cs
- DeobfuscatingStream.cs
- _ChunkParse.cs
- KeyBinding.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- IntSecurity.cs
- XsltContext.cs
- ReadOnlyHierarchicalDataSource.cs
- __FastResourceComparer.cs
- NotifyParentPropertyAttribute.cs
- ContainerAction.cs
- DefaultMemberAttribute.cs
- AllMembershipCondition.cs
- ListView.cs
- Point4D.cs
- FlowDocumentPage.cs
- RemotingException.cs
- ToolboxItemCollection.cs
- DragEventArgs.cs
- EventLogLink.cs
- SafeNativeMethods.cs
- DataBinder.cs
- CryptoProvider.cs
- TemplateBamlTreeBuilder.cs
- XamlInt32CollectionSerializer.cs
- SchemaCollectionPreprocessor.cs
- TileBrush.cs
- XmlDesigner.cs
- CharEnumerator.cs
- CursorConverter.cs
- RoutedPropertyChangedEventArgs.cs
- HeaderUtility.cs
- NetworkAddressChange.cs
- ReflectionHelper.cs
- XsltException.cs
- CommonRemoteMemoryBlock.cs
- NativeCppClassAttribute.cs
- MulticastNotSupportedException.cs
- CommonDialog.cs
- RequestResizeEvent.cs
- HttpModuleActionCollection.cs
- TdsValueSetter.cs
- LeftCellWrapper.cs
- ImageSource.cs
- baseaxisquery.cs
- TextTreeInsertElementUndoUnit.cs
- QueueProcessor.cs
- SqlParameterCollection.cs
- Scanner.cs
- ObjectKeyFrameCollection.cs
- GeometryHitTestResult.cs
- ObjectTag.cs
- TextEditorParagraphs.cs
- HttpApplication.cs
- EncryptedPackageFilter.cs
- MaskedTextBoxTextEditorDropDown.cs
- AnnotationResourceCollection.cs