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
- MenuItemCollection.cs
- BitmapEffectInput.cs
- XmlText.cs
- CqlLexerHelpers.cs
- CompilationPass2Task.cs
- WindowsListViewSubItem.cs
- BuiltInExpr.cs
- EtwTrackingParticipant.cs
- PrintingPermissionAttribute.cs
- HttpListenerResponse.cs
- SqlFunctionAttribute.cs
- TiffBitmapDecoder.cs
- TableLayoutRowStyleCollection.cs
- MaterialGroup.cs
- TextElementEditingBehaviorAttribute.cs
- MD5CryptoServiceProvider.cs
- DataGridViewCellStyle.cs
- Ipv6Element.cs
- DataGridViewAccessibleObject.cs
- MetabaseServerConfig.cs
- SmtpNtlmAuthenticationModule.cs
- FileLogRecordHeader.cs
- DateTimeOffsetStorage.cs
- WorkflowElementDialog.cs
- DetailsViewRow.cs
- BaseTreeIterator.cs
- RemoteHelper.cs
- StoreAnnotationsMap.cs
- UidManager.cs
- InteropExecutor.cs
- PrintController.cs
- InputMethodStateTypeInfo.cs
- InvokeProviderWrapper.cs
- GrammarBuilderRuleRef.cs
- ParallelDesigner.xaml.cs
- DataReaderContainer.cs
- GridLengthConverter.cs
- DynamicDataResources.Designer.cs
- _AuthenticationState.cs
- ImageList.cs
- AuthenticationService.cs
- DesignerDataSchemaClass.cs
- ConfigurationConverterBase.cs
- TemplateBindingExpression.cs
- DecoratedNameAttribute.cs
- AppSettingsReader.cs
- DetailsViewCommandEventArgs.cs
- PagesChangedEventArgs.cs
- CustomActivityDesigner.cs
- WebPartsSection.cs
- BooleanExpr.cs
- DisplayNameAttribute.cs
- ScriptManagerProxy.cs
- ResourcePart.cs
- SiteMapNode.cs
- SimpleBitVector32.cs
- ObjectStorage.cs
- ACE.cs
- IndexedEnumerable.cs
- WhiteSpaceTrimStringConverter.cs
- EventHandlersStore.cs
- XmlSchema.cs
- HttpModule.cs
- AlgoModule.cs
- TabletDeviceInfo.cs
- StandardCommandToolStripMenuItem.cs
- PageAsyncTaskManager.cs
- FullTextLine.cs
- CngAlgorithmGroup.cs
- ISFClipboardData.cs
- PriorityBindingExpression.cs
- SchemaConstraints.cs
- SystemIPGlobalStatistics.cs
- EditorPartChrome.cs
- DataGrid.cs
- CompilerParameters.cs
- ProcessThreadCollection.cs
- AccessKeyManager.cs
- EdmTypeAttribute.cs
- SerializationEventsCache.cs
- EUCJPEncoding.cs
- WindowShowOrOpenTracker.cs
- List.cs
- SystemIPInterfaceProperties.cs
- UnsafeNetInfoNativeMethods.cs
- StrongNamePublicKeyBlob.cs
- ElementFactory.cs
- IResourceProvider.cs
- _DisconnectOverlappedAsyncResult.cs
- EdmSchemaAttribute.cs
- ObsoleteAttribute.cs
- XpsViewerException.cs
- CommandManager.cs
- NullToBooleanConverter.cs
- DashStyles.cs
- SqlDataReader.cs
- OptimalBreakSession.cs
- SkewTransform.cs
- MetadataHelper.cs
- DrawListViewSubItemEventArgs.cs