Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Util / counter.cs / 1 / 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() { } #if UNUSED_CODE internal static float Time(long start) { long time = Value - start; return time / (float)Frequency; } #endif ////// 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() { } #if UNUSED_CODE internal static float Time(long start) { long time = Value - start; return time / (float)Frequency; } #endif ////// 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
- EditCommandColumn.cs
- DataGridViewCellCollection.cs
- MailHeaderInfo.cs
- TypeHelper.cs
- InputLanguageManager.cs
- _FtpDataStream.cs
- GCHandleCookieTable.cs
- NamespaceExpr.cs
- QueryExtender.cs
- SoapAttributeAttribute.cs
- RegistryKey.cs
- TagElement.cs
- oledbmetadatacollectionnames.cs
- basenumberconverter.cs
- AssociationSetMetadata.cs
- SymDocumentType.cs
- ConnectionDemuxer.cs
- ProxyWebPartManager.cs
- XmlSchemaValidator.cs
- Single.cs
- Size.cs
- ObsoleteAttribute.cs
- GlobalEventManager.cs
- MetafileEditor.cs
- JournalEntryStack.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- CodeObjectCreateExpression.cs
- ThemeableAttribute.cs
- ThreadStaticAttribute.cs
- ValidationEventArgs.cs
- MasterPage.cs
- RbTree.cs
- DbBuffer.cs
- BulletedList.cs
- EntityStoreSchemaGenerator.cs
- PagerStyle.cs
- TextSchema.cs
- UnmanagedMemoryStream.cs
- ToolStripPanelRenderEventArgs.cs
- SubpageParaClient.cs
- Misc.cs
- EntityDataSourceChangingEventArgs.cs
- ComponentEditorForm.cs
- ListViewUpdatedEventArgs.cs
- DesignSurfaceEvent.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ShutDownListener.cs
- InvalidateEvent.cs
- arclist.cs
- RequestResponse.cs
- TextStore.cs
- InputScopeManager.cs
- ScriptingScriptResourceHandlerSection.cs
- ColorTranslator.cs
- VisualStates.cs
- SQLSingleStorage.cs
- MouseButtonEventArgs.cs
- TypeSemantics.cs
- StateMachine.cs
- DiscreteKeyFrames.cs
- CharAnimationBase.cs
- BStrWrapper.cs
- DataGridViewColumn.cs
- ArrangedElement.cs
- XmlSchemaProviderAttribute.cs
- StreamWithDictionary.cs
- CompensationHandlingFilter.cs
- ReversePositionQuery.cs
- EntityDataSourceState.cs
- XslNumber.cs
- columnmapkeybuilder.cs
- Substitution.cs
- TabletCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- Lookup.cs
- ExceptionUtil.cs
- activationcontext.cs
- XmlCountingReader.cs
- WebSysDefaultValueAttribute.cs
- AmbientLight.cs
- ReadContentAsBinaryHelper.cs
- ColumnReorderedEventArgs.cs
- QilGeneratorEnv.cs
- ConstructorExpr.cs
- XmlImplementation.cs
- CreateBookmarkScope.cs
- FormViewInsertEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- SmtpCommands.cs
- OutputBuffer.cs
- DictionaryContent.cs
- AnnotationResource.cs
- FontStretch.cs
- DesignerActionList.cs
- MsmqDiagnostics.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Content.cs
- SqlException.cs
- WorkflowOperationErrorHandler.cs
- TriState.cs