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
- AutomationPropertyInfo.cs
- WindowsRegion.cs
- EnumDataContract.cs
- SoapInteropTypes.cs
- Translator.cs
- DiscriminatorMap.cs
- SafeFileMappingHandle.cs
- ClaimTypes.cs
- XamlSerializerUtil.cs
- DoubleStorage.cs
- SmtpDigestAuthenticationModule.cs
- BrowserDefinition.cs
- CompositeDesignerAccessibleObject.cs
- NetworkStream.cs
- SqlBooleanizer.cs
- DataReaderContainer.cs
- ConfigurationSectionGroup.cs
- QueryStoreStatusRequest.cs
- CodeNamespaceImport.cs
- PathTooLongException.cs
- AppLevelCompilationSectionCache.cs
- entityreference_tresulttype.cs
- FlowNode.cs
- UiaCoreTypesApi.cs
- AttachedPropertyMethodSelector.cs
- MdImport.cs
- InheritanceRules.cs
- XmlUtf8RawTextWriter.cs
- RowTypePropertyElement.cs
- SourceChangedEventArgs.cs
- ImageInfo.cs
- WebHttpBindingElement.cs
- InkPresenterAutomationPeer.cs
- EntityTypeEmitter.cs
- ConfigXmlSignificantWhitespace.cs
- Pens.cs
- TcpTransportManager.cs
- Table.cs
- EntityDataSourceContextCreatedEventArgs.cs
- KoreanLunisolarCalendar.cs
- TraceEventCache.cs
- DPTypeDescriptorContext.cs
- ArgumentException.cs
- VerticalAlignConverter.cs
- EntityException.cs
- SubtreeProcessor.cs
- ValidationErrorCollection.cs
- SchemaImporterExtensionsSection.cs
- followingsibling.cs
- SessionStateSection.cs
- DataTrigger.cs
- InlineCollection.cs
- hresults.cs
- ReadOnlyDictionary.cs
- EnvironmentPermission.cs
- MaskedTextBoxTextEditor.cs
- FindCriteria11.cs
- UnicodeEncoding.cs
- ObjectAnimationUsingKeyFrames.cs
- TreeNode.cs
- FocusWithinProperty.cs
- CommandID.cs
- QuaternionValueSerializer.cs
- UrlAuthorizationModule.cs
- WindowsEditBoxRange.cs
- CommentEmitter.cs
- StrokeNodeOperations.cs
- PathSegmentCollection.cs
- Attachment.cs
- StyleSelector.cs
- URLMembershipCondition.cs
- Update.cs
- PeerEndPoint.cs
- GridLength.cs
- PublishLicense.cs
- Graphics.cs
- NegatedConstant.cs
- ZoomComboBox.cs
- HttpModulesSection.cs
- TreeNodeCollection.cs
- Propagator.JoinPropagator.cs
- ScaleTransform3D.cs
- WebPartZone.cs
- SqlVisitor.cs
- HtmlTableRow.cs
- TextHintingModeValidation.cs
- TagMapInfo.cs
- RequestCachingSection.cs
- HtmlFormParameterReader.cs
- WebPartDescriptionCollection.cs
- TextFormatterHost.cs
- FontConverter.cs
- Helpers.cs
- InsufficientMemoryException.cs
- querybuilder.cs
- FlowLayout.cs
- BindingObserver.cs
- GroupBox.cs
- Line.cs
- SoapFormatExtensions.cs