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
- UserControlFileEditor.cs
- ExecutionEngineException.cs
- TreeViewImageKeyConverter.cs
- DBCSCodePageEncoding.cs
- MethodSet.cs
- XamlStyleSerializer.cs
- RoleManagerModule.cs
- CheckBoxStandardAdapter.cs
- SqlConnectionManager.cs
- ScaleTransform.cs
- DataStreamFromComStream.cs
- TraceEventCache.cs
- CubicEase.cs
- WorkflowMarkupSerializationManager.cs
- CodeArrayCreateExpression.cs
- ResourceWriter.cs
- QuarticEase.cs
- ProfileProvider.cs
- DurableInstanceManager.cs
- CellQuery.cs
- SqlProvider.cs
- ProtocolViolationException.cs
- HtmlInputButton.cs
- SourceFileBuildProvider.cs
- TableLayoutStyleCollection.cs
- UntrustedRecipientException.cs
- ListViewSelectEventArgs.cs
- TransformerConfigurationWizardBase.cs
- Menu.cs
- DataGridParentRows.cs
- NotImplementedException.cs
- CommandBindingCollection.cs
- Triplet.cs
- WebPartCancelEventArgs.cs
- SecureConversationSecurityTokenParameters.cs
- EmbeddedMailObjectsCollection.cs
- SqlSupersetValidator.cs
- MDIClient.cs
- OneToOneMappingSerializer.cs
- Annotation.cs
- ErrorStyle.cs
- PropertyChangingEventArgs.cs
- XmlHierarchyData.cs
- ProxyAttribute.cs
- Content.cs
- ManualResetEvent.cs
- UdpTransportSettingsElement.cs
- DynamicObjectAccessor.cs
- GroupItemAutomationPeer.cs
- SpeechSeg.cs
- sortedlist.cs
- SamlAuthorizationDecisionStatement.cs
- InvalidDocumentContentsException.cs
- MobileTemplatedControlDesigner.cs
- ComponentCollection.cs
- BindingOperations.cs
- FieldAccessException.cs
- ProxyWebPart.cs
- StorageMappingItemLoader.cs
- COM2IPerPropertyBrowsingHandler.cs
- XmlTextReaderImpl.cs
- NonVisualControlAttribute.cs
- LoginCancelEventArgs.cs
- MimeBasePart.cs
- RealProxy.cs
- Int32AnimationBase.cs
- basenumberconverter.cs
- ServiceDescription.cs
- WorkflowOperationAsyncResult.cs
- ProxySimple.cs
- ModulesEntry.cs
- shaper.cs
- sortedlist.cs
- PersianCalendar.cs
- AsnEncodedData.cs
- TextWriter.cs
- TreeNodeEventArgs.cs
- VideoDrawing.cs
- IndentTextWriter.cs
- Transform3DGroup.cs
- AlphabeticalEnumConverter.cs
- Merger.cs
- AssociatedControlConverter.cs
- WorkItem.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Vector.cs
- SQLDecimal.cs
- StorageBasedPackageProperties.cs
- TabletDeviceInfo.cs
- ProjectionCamera.cs
- MemberDomainMap.cs
- SystemEvents.cs
- Relationship.cs
- Identity.cs
- Hex.cs
- PackageRelationshipCollection.cs
- OleDbSchemaGuid.cs
- DockPanel.cs
- FormatterServices.cs
- _SslSessionsCache.cs