Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PassportAuthentication.cs
- XmlSchemaSimpleType.cs
- EmptyCollection.cs
- FragmentQuery.cs
- ToolStripPanelSelectionGlyph.cs
- ILGenerator.cs
- BitmapEffectOutputConnector.cs
- DataBindingExpressionBuilder.cs
- ExtensibleClassFactory.cs
- DesignerListAdapter.cs
- EntityDataSourceSelectingEventArgs.cs
- ViewCellRelation.cs
- WindowsServiceElement.cs
- IConvertible.cs
- PageWrapper.cs
- ModelVisual3D.cs
- EntityModelSchemaGenerator.cs
- ContextBase.cs
- ImageSourceConverter.cs
- DrawingImage.cs
- ContainerAction.cs
- TreeNode.cs
- SwitchElementsCollection.cs
- ViewLoader.cs
- ValidationPropertyAttribute.cs
- Row.cs
- HttpPostedFileBase.cs
- StretchValidation.cs
- SecurityRequiresReviewAttribute.cs
- TextModifierScope.cs
- TreeNodeConverter.cs
- ManifestResourceInfo.cs
- SamlEvidence.cs
- ListBase.cs
- SqlSupersetValidator.cs
- HwndSubclass.cs
- Point3DCollectionConverter.cs
- SecurityResources.cs
- ExpandedWrapper.cs
- ImageSource.cs
- SchemaTypeEmitter.cs
- TextRangeProviderWrapper.cs
- ClientFormsAuthenticationCredentials.cs
- ProxyHwnd.cs
- DataServiceExpressionVisitor.cs
- WMICapabilities.cs
- AutoResetEvent.cs
- DataView.cs
- CollaborationHelperFunctions.cs
- AutoGeneratedFieldProperties.cs
- MemoryMappedView.cs
- ISFTagAndGuidCache.cs
- DesignerOptionService.cs
- ConfigurationManagerInternalFactory.cs
- Attachment.cs
- DispatcherSynchronizationContext.cs
- EditorBrowsableAttribute.cs
- CustomValidator.cs
- EntityDataSourceWrapperCollection.cs
- HostingEnvironmentException.cs
- IntegerCollectionEditor.cs
- ToolbarAUtomationPeer.cs
- SafeBitVector32.cs
- UnsupportedPolicyOptionsException.cs
- XmlSchemaCompilationSettings.cs
- SettingsBindableAttribute.cs
- ContentFileHelper.cs
- DataServiceQueryProvider.cs
- DragEventArgs.cs
- XslAst.cs
- TextEffectResolver.cs
- DataList.cs
- ReservationCollection.cs
- StringPropertyBuilder.cs
- CallbackTimeoutsBehavior.cs
- HandlerFactoryWrapper.cs
- Point3DCollectionConverter.cs
- XmlSerializerOperationGenerator.cs
- DataControlFieldHeaderCell.cs
- MultiPropertyDescriptorGridEntry.cs
- WebPartZone.cs
- EntitySqlException.cs
- CommandID.cs
- UTF32Encoding.cs
- ReadWriteObjectLock.cs
- ColorBuilder.cs
- Misc.cs
- Misc.cs
- ExecutionEngineException.cs
- PageCache.cs
- XmlSchemaInferenceException.cs
- OperationContextScope.cs
- PropertyBuilder.cs
- PageContent.cs
- RuntimeWrappedException.cs
- RadioButtonPopupAdapter.cs
- SqlUserDefinedAggregateAttribute.cs
- AnnotationService.cs
- SourceFilter.cs
- CultureTableRecord.cs