Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- translator.cs
- CodeIterationStatement.cs
- WorkflowFormatterBehavior.cs
- ColorConvertedBitmap.cs
- LinqDataSourceValidationException.cs
- ConfigurationPermission.cs
- TableCell.cs
- tooltip.cs
- SmiEventSink.cs
- XslVisitor.cs
- PersonalizationStateInfo.cs
- UrlAuthFailedErrorFormatter.cs
- ServiceDebugBehavior.cs
- PropertySegmentSerializer.cs
- DataGridParentRows.cs
- PeerNameRegistration.cs
- MulticastOption.cs
- DataGridViewColumn.cs
- LocalFileSettingsProvider.cs
- MediaCommands.cs
- ImageListStreamer.cs
- EntityObject.cs
- DrawingImage.cs
- SystemResourceKey.cs
- XPathNodeHelper.cs
- Rotation3D.cs
- DrawingBrush.cs
- EntityDataSourceView.cs
- FilterUserControlBase.cs
- TextTreeNode.cs
- GraphicsPath.cs
- XmlQueryCardinality.cs
- Rule.cs
- SaveFileDialog.cs
- SerializationSectionGroup.cs
- cache.cs
- BuildProvider.cs
- IconConverter.cs
- Variable.cs
- CaseStatement.cs
- formatstringdialog.cs
- COM2ExtendedUITypeEditor.cs
- ToolStripItemDataObject.cs
- SuppressMessageAttribute.cs
- ArrayWithOffset.cs
- XmlQualifiedName.cs
- LingerOption.cs
- ObsoleteAttribute.cs
- TextRange.cs
- Composition.cs
- InstanceDataCollection.cs
- ClientConfigurationHost.cs
- PropertyToken.cs
- KeyboardDevice.cs
- _BufferOffsetSize.cs
- OdbcTransaction.cs
- QuotedPrintableStream.cs
- DoubleAnimation.cs
- ParameterElementCollection.cs
- DesignSurfaceServiceContainer.cs
- FolderBrowserDialog.cs
- CaseInsensitiveHashCodeProvider.cs
- SourceCollection.cs
- WebPartCloseVerb.cs
- TextViewBase.cs
- XmlSchemaObjectCollection.cs
- SurrogateSelector.cs
- RuleSetReference.cs
- GridSplitterAutomationPeer.cs
- TrustSection.cs
- DoubleKeyFrameCollection.cs
- PackageStore.cs
- HtmlTitle.cs
- ListChangedEventArgs.cs
- WorkflowQueuingService.cs
- EnumValAlphaComparer.cs
- HtmlToClrEventProxy.cs
- UpDownBaseDesigner.cs
- TemplateBindingExpressionConverter.cs
- MgmtConfigurationRecord.cs
- Line.cs
- EntityWithKeyStrategy.cs
- Geometry3D.cs
- X509Utils.cs
- Item.cs
- CollectionViewProxy.cs
- ServiceDeploymentInfo.cs
- OrderingExpression.cs
- WindowsEditBox.cs
- CategoryGridEntry.cs
- RelationshipType.cs
- PersistenceProviderBehavior.cs
- DataGridParentRows.cs
- IdentityReference.cs
- TreeWalkHelper.cs
- LineBreakRecord.cs
- WindowsStreamSecurityUpgradeProvider.cs
- RelationshipEnd.cs
- PeerTransportElement.cs
- ProtocolsConfiguration.cs