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
- HwndSubclass.cs
- StrokeSerializer.cs
- DataGridViewRowsRemovedEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- ComponentEvent.cs
- CodeRegionDirective.cs
- TemplateGroupCollection.cs
- UIElement.cs
- TemplateKey.cs
- SqlServer2KCompatibilityCheck.cs
- VectorKeyFrameCollection.cs
- PolyQuadraticBezierSegment.cs
- TypeInfo.cs
- XmlWellformedWriter.cs
- FaultPropagationRecord.cs
- CustomCategoryAttribute.cs
- DataGridViewImageColumn.cs
- LoadRetryStrategyFactory.cs
- SafeLibraryHandle.cs
- SmiGettersStream.cs
- URIFormatException.cs
- SyndicationDeserializer.cs
- AuthenticationConfig.cs
- MediaTimeline.cs
- _WinHttpWebProxyDataBuilder.cs
- OpenFileDialog.cs
- SqlUdtInfo.cs
- SQLSingle.cs
- SyntaxCheck.cs
- SubstitutionDesigner.cs
- OracleInfoMessageEventArgs.cs
- Transform3DGroup.cs
- RelationshipNavigation.cs
- TextTrailingWordEllipsis.cs
- NavigationPropertyEmitter.cs
- SingleQueryOperator.cs
- DataGridCaption.cs
- TemplatePartAttribute.cs
- Parameter.cs
- DataGridRelationshipRow.cs
- HtmlImage.cs
- Page.cs
- BindingGroup.cs
- SqlDeflator.cs
- MethodBuilder.cs
- ConstraintCollection.cs
- BitmapCodecInfoInternal.cs
- TypedReference.cs
- dbenumerator.cs
- SortQuery.cs
- Point.cs
- RuleInfoComparer.cs
- BlockExpression.cs
- SafeSecurityHandles.cs
- PerformanceCounterPermissionEntryCollection.cs
- TypeViewSchema.cs
- ImportCatalogPart.cs
- BaseCollection.cs
- RoleServiceManager.cs
- CryptoProvider.cs
- Boolean.cs
- PolicyLevel.cs
- StringBuilder.cs
- CodeTypeOfExpression.cs
- StartUpEventArgs.cs
- PageTheme.cs
- ComplexPropertyEntry.cs
- XmlSiteMapProvider.cs
- HttpChannelHelper.cs
- SafeEventLogWriteHandle.cs
- Translator.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DateTimeOffsetStorage.cs
- MD5.cs
- X509Certificate.cs
- PropertiesTab.cs
- WebPartActionVerb.cs
- TextElementCollection.cs
- XmlDesignerDataSourceView.cs
- WebPartCatalogAddVerb.cs
- AttachmentService.cs
- Int32RectValueSerializer.cs
- InfoCardTrace.cs
- DefaultParameterValueAttribute.cs
- SystemTcpStatistics.cs
- ExtendedProperty.cs
- JsonServiceDocumentSerializer.cs
- TemplateInstanceAttribute.cs
- UdpConstants.cs
- CommandManager.cs
- MailHeaderInfo.cs
- TableLayoutSettingsTypeConverter.cs
- Compilation.cs
- KnownBoxes.cs
- DataTableCollection.cs
- DataGridTextBoxColumn.cs
- ReturnEventArgs.cs
- CapacityStreamGeometryContext.cs
- CompModSwitches.cs
- TimeoutException.cs