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
- KeyInterop.cs
- NativeMethods.cs
- DataGridColumnDropSeparator.cs
- DataTable.cs
- FixedSOMPage.cs
- WorkflowClientDeliverMessageWrapper.cs
- SqlDataSourceSummaryPanel.cs
- SqlCacheDependencySection.cs
- NamespaceListProperty.cs
- SqlBulkCopyColumnMapping.cs
- DesignerLabelAdapter.cs
- ButtonBaseDesigner.cs
- ImageIndexConverter.cs
- ApplicationTrust.cs
- Win32Native.cs
- CodeExpressionCollection.cs
- DateTimeSerializationSection.cs
- SafeSerializationManager.cs
- ProgressBar.cs
- WebServiceEnumData.cs
- BitStream.cs
- NativeMethods.cs
- FontUnit.cs
- UriWriter.cs
- SwitchLevelAttribute.cs
- ToolStripButton.cs
- ChangeInterceptorAttribute.cs
- ContentValidator.cs
- SqlErrorCollection.cs
- IUnknownConstantAttribute.cs
- KoreanLunisolarCalendar.cs
- ExtensionWindowResizeGrip.cs
- XmlJsonWriter.cs
- MemoryPressure.cs
- XsltException.cs
- UIntPtr.cs
- PageOutputColor.cs
- IsolatedStorage.cs
- Formatter.cs
- ImageAnimator.cs
- LinearGradientBrush.cs
- SecureStringHasher.cs
- WeakReferenceEnumerator.cs
- BaseServiceProvider.cs
- PrinterUnitConvert.cs
- NullableDoubleMinMaxAggregationOperator.cs
- SubMenuStyle.cs
- ApplicationSettingsBase.cs
- HiddenFieldPageStatePersister.cs
- SoapFault.cs
- ConfigXmlElement.cs
- ClassicBorderDecorator.cs
- ResolvedKeyFrameEntry.cs
- SendSecurityHeader.cs
- XmlText.cs
- DbCommandTree.cs
- RIPEMD160Managed.cs
- SqlFileStream.cs
- CodeNamespaceCollection.cs
- SerializableAttribute.cs
- DataServiceProviderWrapper.cs
- WizardForm.cs
- XmlDataCollection.cs
- DispatcherEventArgs.cs
- SafeNativeMethods.cs
- CodeFieldReferenceExpression.cs
- IOException.cs
- DrawingContextDrawingContextWalker.cs
- MethodAccessException.cs
- Style.cs
- CodeArrayIndexerExpression.cs
- DecoderReplacementFallback.cs
- UrlPropertyAttribute.cs
- BulletDecorator.cs
- HtmlMeta.cs
- DefinitionUpdate.cs
- PhysicalOps.cs
- XmlExtensionFunction.cs
- WSDualHttpSecurityMode.cs
- DataControlLinkButton.cs
- HScrollBar.cs
- DataGridViewTextBoxEditingControl.cs
- RayMeshGeometry3DHitTestResult.cs
- WebServiceMethodData.cs
- CompilationSection.cs
- XmlSchemaSimpleType.cs
- ContentValidator.cs
- ResumeStoryboard.cs
- SqlRowUpdatedEvent.cs
- MdiWindowListStrip.cs
- CodeNamespaceCollection.cs
- DbConnectionFactory.cs
- TransformerInfoCollection.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewLayoutData.cs
- _SpnDictionary.cs
- ScrollEvent.cs
- GridViewDeleteEventArgs.cs
- XmlCDATASection.cs
- Matrix3DStack.cs