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
- UIElementPropertyUndoUnit.cs
- VisualStateChangedEventArgs.cs
- HtmlForm.cs
- WinFormsUtils.cs
- ResizeGrip.cs
- CopyCodeAction.cs
- WebPartMovingEventArgs.cs
- TextServicesProperty.cs
- DelayDesigner.cs
- XmlDesigner.cs
- MaterialGroup.cs
- Utils.cs
- OleDbInfoMessageEvent.cs
- FormsAuthenticationEventArgs.cs
- TextTreeTextNode.cs
- SoapUnknownHeader.cs
- DataSourceHelper.cs
- NameTable.cs
- CodeLinePragma.cs
- TypefaceCollection.cs
- CanExecuteRoutedEventArgs.cs
- _SafeNetHandles.cs
- ComplexLine.cs
- DrawingVisual.cs
- ControlAdapter.cs
- HttpResponseWrapper.cs
- AudioFileOut.cs
- ItemAutomationPeer.cs
- TraceListener.cs
- LogReservationCollection.cs
- IApplicationTrustManager.cs
- CharacterHit.cs
- SqlConnectionStringBuilder.cs
- MethodBody.cs
- CryptoConfig.cs
- EnumValAlphaComparer.cs
- TextDecorations.cs
- AnnotationHelper.cs
- DropShadowBitmapEffect.cs
- SafeViewOfFileHandle.cs
- WorkflowInstance.cs
- SoapParser.cs
- SafeHandles.cs
- EventManager.cs
- MultiplexingDispatchMessageFormatter.cs
- HttpUnhandledOperationInvoker.cs
- SafeNativeMethods.cs
- Select.cs
- AccessDataSource.cs
- DbConnectionPool.cs
- EntityDataSourceSelectingEventArgs.cs
- OdbcParameter.cs
- SchemaImporter.cs
- BindUriHelper.cs
- EntityContainerEmitter.cs
- GridViewAutoFormat.cs
- OraclePermissionAttribute.cs
- CryptoProvider.cs
- DynamicFilter.cs
- ConditionalBranch.cs
- BridgeDataRecord.cs
- Vector3DCollection.cs
- XmlEventCache.cs
- OrderedDictionary.cs
- KeyTimeConverter.cs
- NativeObjectSecurity.cs
- DirtyTextRange.cs
- WebPartDisplayModeCollection.cs
- DataRecordInternal.cs
- FlowDocumentReaderAutomationPeer.cs
- Dictionary.cs
- ProcessModelSection.cs
- TypeDescriptionProviderAttribute.cs
- BoundField.cs
- BrowserCapabilitiesFactory.cs
- PhysicalFontFamily.cs
- FunctionCommandText.cs
- SafeHandles.cs
- AstNode.cs
- AuthStoreRoleProvider.cs
- PreviewKeyDownEventArgs.cs
- parserscommon.cs
- FrameworkElementFactory.cs
- DocumentPageHost.cs
- SeparatorAutomationPeer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SortedSetDebugView.cs
- DesignerDataStoredProcedure.cs
- DefaultSettingsSection.cs
- TemplatedControlDesigner.cs
- PrimitiveCodeDomSerializer.cs
- ApplicationTrust.cs
- EventDriven.cs
- Thread.cs
- HostProtectionPermission.cs
- RegexBoyerMoore.cs
- DataGridRow.cs
- TraceContextRecord.cs
- ArcSegment.cs
- ResourceDisplayNameAttribute.cs