Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Internal.cs
- FieldMetadata.cs
- DateTimeConverter2.cs
- EditCommandColumn.cs
- FileDialog_Vista_Interop.cs
- TextTreeDeleteContentUndoUnit.cs
- NameValuePair.cs
- DataServiceProcessingPipeline.cs
- SByteStorage.cs
- ColorInterpolationModeValidation.cs
- PageHandlerFactory.cs
- HtmlElementCollection.cs
- RegistrySecurity.cs
- Speller.cs
- WsatAdminException.cs
- RenderTargetBitmap.cs
- PartialCachingControl.cs
- ImageSource.cs
- HelpInfo.cs
- LinkUtilities.cs
- CompositeDispatchFormatter.cs
- PhysicalOps.cs
- Trigger.cs
- WebPartMinimizeVerb.cs
- DeviceContext2.cs
- FontFamily.cs
- HtmlFormParameterReader.cs
- TogglePatternIdentifiers.cs
- CodeCastExpression.cs
- XsdDuration.cs
- Error.cs
- DescendentsWalkerBase.cs
- EraserBehavior.cs
- DataSourceHelper.cs
- LocalizationParserHooks.cs
- CompModSwitches.cs
- XamlPoint3DCollectionSerializer.cs
- DataServiceProviderWrapper.cs
- TableRowGroup.cs
- ClosableStream.cs
- GPRECT.cs
- PeerNodeAddress.cs
- RequestCacheManager.cs
- SingleAnimationBase.cs
- EnglishPluralizationService.cs
- GlobalEventManager.cs
- DataObjectPastingEventArgs.cs
- ComNativeDescriptor.cs
- FixedSOMElement.cs
- RowToParametersTransformer.cs
- XamlBrushSerializer.cs
- XmlSchemaCompilationSettings.cs
- DigitShape.cs
- ServicePointManagerElement.cs
- UnsafeNativeMethods.cs
- CorrelationToken.cs
- AttributeCollection.cs
- DBSqlParserTable.cs
- ControlsConfig.cs
- QilNode.cs
- PageContentAsyncResult.cs
- PropertyValue.cs
- BinaryNode.cs
- NavigationPropertyAccessor.cs
- Scene3D.cs
- EditingCommands.cs
- ButtonChrome.cs
- CategoryAttribute.cs
- DesignerToolboxInfo.cs
- DataExpression.cs
- SqlPersonalizationProvider.cs
- AuthenticationException.cs
- QilReference.cs
- PageAsyncTaskManager.cs
- ModelItem.cs
- PngBitmapDecoder.cs
- CodeIndexerExpression.cs
- DelayedRegex.cs
- LexicalChunk.cs
- SponsorHelper.cs
- HwndStylusInputProvider.cs
- StringReader.cs
- FloaterBaseParaClient.cs
- CultureInfoConverter.cs
- DesignTimeVisibleAttribute.cs
- SqlRemoveConstantOrderBy.cs
- RoutedEvent.cs
- TimeSpanValidatorAttribute.cs
- NullableConverter.cs
- DriveInfo.cs
- CloseCollectionAsyncResult.cs
- fixedPageContentExtractor.cs
- HyperLink.cs
- ChangeConflicts.cs
- WindowsFormsEditorServiceHelper.cs
- ListItemCollection.cs
- XPathDescendantIterator.cs
- HtmlTableRowCollection.cs
- CustomAttributeBuilder.cs
- SmtpNtlmAuthenticationModule.cs