Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyChangingEventArgs.cs
- InternalBase.cs
- CodeBinaryOperatorExpression.cs
- FontUnitConverter.cs
- FilterableAttribute.cs
- Matrix.cs
- SelectionPatternIdentifiers.cs
- CombinedGeometry.cs
- ConfigXmlWhitespace.cs
- SqlMetaData.cs
- RequestCacheValidator.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- X509Logo.cs
- HttpRawResponse.cs
- UnauthorizedAccessException.cs
- SaveFileDialog.cs
- SchemaNames.cs
- ProfileManager.cs
- FormViewPagerRow.cs
- Span.cs
- CellIdBoolean.cs
- HtmlTernaryTree.cs
- odbcmetadatacollectionnames.cs
- ToolStripPanelRow.cs
- RsaSecurityTokenAuthenticator.cs
- ExtensionSimplifierMarkupObject.cs
- XmlEntity.cs
- PageCodeDomTreeGenerator.cs
- ExpressionCopier.cs
- clipboard.cs
- RequestCacheEntry.cs
- GeometryHitTestParameters.cs
- TextSelectionHelper.cs
- BinHexDecoder.cs
- TextTreeUndo.cs
- httpstaticobjectscollection.cs
- DataGridViewCell.cs
- InvalidOperationException.cs
- MethodCallTranslator.cs
- List.cs
- ObjectNavigationPropertyMapping.cs
- ParallelEnumerable.cs
- EntityCommandCompilationException.cs
- GridToolTip.cs
- AnnotationAuthorChangedEventArgs.cs
- SqlEnums.cs
- LiteralTextContainerControlBuilder.cs
- AuthenticationSection.cs
- ParameterCollection.cs
- ElapsedEventArgs.cs
- ResolvedKeyFrameEntry.cs
- CommandLibraryHelper.cs
- ImageFormatConverter.cs
- GeneralTransform3DCollection.cs
- HtmlInputPassword.cs
- ReadOnlyAttribute.cs
- NativeMethods.cs
- CompilerWrapper.cs
- RenamedEventArgs.cs
- ProgressBar.cs
- ListenerServiceInstallComponent.cs
- TextOnlyOutput.cs
- HelpOperationInvoker.cs
- QilTypeChecker.cs
- ToolStripRenderer.cs
- RegexMatchCollection.cs
- FirstMatchCodeGroup.cs
- ThreadPool.cs
- DBConnectionString.cs
- WindowsGraphics2.cs
- DataTableMapping.cs
- RangeBase.cs
- EntityDataSourceColumn.cs
- XsltSettings.cs
- TextTreePropertyUndoUnit.cs
- LinkTarget.cs
- BitmapEffectDrawingContextState.cs
- EnumerableRowCollection.cs
- TrackingWorkflowEventArgs.cs
- MetadataHelper.cs
- RelatedView.cs
- BufferBuilder.cs
- DataProtection.cs
- ContextMarshalException.cs
- NotSupportedException.cs
- CapabilitiesSection.cs
- QueryReaderSettings.cs
- DataGrid.cs
- WebConfigurationHost.cs
- ConstraintStruct.cs
- CustomAttributeSerializer.cs
- CommandConverter.cs
- DataBoundControlHelper.cs
- MessageDescriptionCollection.cs
- CacheModeValueSerializer.cs
- SQLInt16Storage.cs
- ObjectPropertyMapping.cs
- Rotation3D.cs
- DBConnection.cs
- SHA512Managed.cs