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
- ByteKeyFrameCollection.cs
- TreeIterators.cs
- ConnectionPointConverter.cs
- EventToken.cs
- ConnectionManagementSection.cs
- SubtreeProcessor.cs
- MILUtilities.cs
- QueryOptionExpression.cs
- EventPropertyMap.cs
- DbInsertCommandTree.cs
- HttpPostedFileWrapper.cs
- DesignerOptions.cs
- ClickablePoint.cs
- ResizeGrip.cs
- Page.cs
- InProcStateClientManager.cs
- OperationPerformanceCounters.cs
- DrawingAttributesDefaultValueFactory.cs
- PageCatalogPart.cs
- OutputCacheProfileCollection.cs
- SqlMultiplexer.cs
- StorageConditionPropertyMapping.cs
- ShaderEffect.cs
- DoubleKeyFrameCollection.cs
- MouseBinding.cs
- CodeConstructor.cs
- XamlTemplateSerializer.cs
- SetState.cs
- ListManagerBindingsCollection.cs
- WebPartEditVerb.cs
- ProcessRequestAsyncResult.cs
- DataTableClearEvent.cs
- SettingsSavedEventArgs.cs
- EntityType.cs
- SqlBulkCopy.cs
- BooleanSwitch.cs
- EqualityComparer.cs
- KoreanCalendar.cs
- ProfileSettingsCollection.cs
- UnmanagedMemoryStream.cs
- CompiledRegexRunnerFactory.cs
- QuaternionAnimation.cs
- Point.cs
- ToolboxItemLoader.cs
- DesignerCategoryAttribute.cs
- TypeProvider.cs
- NativeMethods.cs
- Lazy.cs
- TimelineGroup.cs
- ValidationRuleCollection.cs
- ConfigurationManagerInternal.cs
- BezierSegment.cs
- ReferencedAssemblyResolver.cs
- MsmqInputSessionChannelListener.cs
- GridItemPattern.cs
- ContourSegment.cs
- embossbitmapeffect.cs
- TransformerInfo.cs
- TemplateAction.cs
- BookmarkUndoUnit.cs
- HttpConfigurationContext.cs
- SdlChannelSink.cs
- ScrollEvent.cs
- DescendantOverDescendantQuery.cs
- Int32Collection.cs
- DecimalConstantAttribute.cs
- ModelServiceImpl.cs
- WindowsSolidBrush.cs
- CodeThrowExceptionStatement.cs
- DesignerUtils.cs
- XmlSerializerOperationGenerator.cs
- AssociationEndMember.cs
- ItemsPanelTemplate.cs
- ColorConverter.cs
- SQLByte.cs
- PassportIdentity.cs
- Main.cs
- XmlDataSourceView.cs
- CachedFontFamily.cs
- SchemaImporter.cs
- sqlmetadatafactory.cs
- SubMenuStyle.cs
- AdjustableArrowCap.cs
- UrlMappingsModule.cs
- SqlBinder.cs
- ClassicBorderDecorator.cs
- ListBase.cs
- GridViewRowPresenter.cs
- InternalBufferOverflowException.cs
- RepeatButton.cs
- HttpListenerContext.cs
- NamespaceQuery.cs
- LineServicesRun.cs
- ComponentEditorPage.cs
- CapabilitiesAssignment.cs
- PackagePart.cs
- GridPattern.cs
- ContextQuery.cs
- InheritablePropertyChangeInfo.cs
- EncryptedPackage.cs