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
- ServiceProviders.cs
- GraphicsPath.cs
- cookieexception.cs
- MemberCollection.cs
- SystemIPv6InterfaceProperties.cs
- UIElementCollection.cs
- ScriptComponentDescriptor.cs
- RedBlackList.cs
- ExpressionBinding.cs
- InvalidAsynchronousStateException.cs
- ReflectTypeDescriptionProvider.cs
- ProcessRequestArgs.cs
- InternalTypeHelper.cs
- SspiWrapper.cs
- CircleHotSpot.cs
- CodeMethodInvokeExpression.cs
- XsdDateTime.cs
- ImageButton.cs
- ParsedAttributeCollection.cs
- ButtonChrome.cs
- DefaultWorkflowSchedulerService.cs
- PageRanges.cs
- PrimaryKeyTypeConverter.cs
- SoapObjectWriter.cs
- MultiViewDesigner.cs
- Container.cs
- AssemblySettingAttributes.cs
- SocketElement.cs
- xmlfixedPageInfo.cs
- DataGridViewImageColumn.cs
- XmlNodeList.cs
- CalendarDateChangedEventArgs.cs
- SqlProvider.cs
- XmlEncodedRawTextWriter.cs
- Shape.cs
- GridViewPageEventArgs.cs
- WhitespaceRuleLookup.cs
- AliasGenerator.cs
- SEHException.cs
- ErrorTableItemStyle.cs
- Variant.cs
- InitialServerConnectionReader.cs
- WhitespaceRuleLookup.cs
- ToolStrip.cs
- __FastResourceComparer.cs
- DbConnectionPoolGroupProviderInfo.cs
- WindowsFormsSynchronizationContext.cs
- TextModifierScope.cs
- SmtpException.cs
- DataRelationPropertyDescriptor.cs
- ConstrainedGroup.cs
- UnicastIPAddressInformationCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- OutOfMemoryException.cs
- PageContentAsyncResult.cs
- IgnorePropertiesAttribute.cs
- WsdlBuildProvider.cs
- StrokeRenderer.cs
- ToolStripPanelRow.cs
- XmlSchemaComplexContent.cs
- TextAction.cs
- WorkerProcess.cs
- RbTree.cs
- FaultDescriptionCollection.cs
- DynamicFilterExpression.cs
- PropertyOrder.cs
- LineSegment.cs
- RestClientProxyHandler.cs
- HistoryEventArgs.cs
- GlyphInfoList.cs
- SelectionItemPattern.cs
- CreateRefExpr.cs
- Nullable.cs
- XmlAtomErrorReader.cs
- PropertyDescriptorCollection.cs
- ClaimTypes.cs
- IUnknownConstantAttribute.cs
- SqlBuffer.cs
- SafeRsaProviderHandle.cs
- SettingsBindableAttribute.cs
- ValidationResult.cs
- StringConverter.cs
- DesignerTransaction.cs
- LocalizationParserHooks.cs
- SplayTreeNode.cs
- MsmqOutputChannel.cs
- GenericIdentity.cs
- FontDifferentiator.cs
- CompareInfo.cs
- TypedElement.cs
- SimpleRecyclingCache.cs
- DateTimePicker.cs
- TextTreeExtractElementUndoUnit.cs
- WebPartConnectionsCancelEventArgs.cs
- RadioButtonRenderer.cs
- LoginView.cs
- OleTxTransaction.cs
- HttpCachePolicyElement.cs
- webeventbuffer.cs
- ColumnHeader.cs