Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- QuadraticBezierSegment.cs
- CalendarButtonAutomationPeer.cs
- IisTraceWebEventProvider.cs
- EntityCollection.cs
- TextSelection.cs
- XmlCharCheckingWriter.cs
- PresentationTraceSources.cs
- OutKeywords.cs
- FieldToken.cs
- UserMapPath.cs
- SplineKeyFrames.cs
- EventSourceCreationData.cs
- SafeMILHandle.cs
- Adorner.cs
- BindUriHelper.cs
- DataSourceControl.cs
- SystemIPv4InterfaceProperties.cs
- BinarySerializer.cs
- DateTimeUtil.cs
- PEFileReader.cs
- XmlSchemaSimpleTypeRestriction.cs
- TryLoadRunnableWorkflowCommand.cs
- IntegerValidator.cs
- SqlDataRecord.cs
- CodeExpressionStatement.cs
- PerformanceCounterManager.cs
- EntitySqlQueryState.cs
- AbandonedMutexException.cs
- DataGridRow.cs
- WebPartConnectionsCloseVerb.cs
- FileLevelControlBuilderAttribute.cs
- Setter.cs
- InputReport.cs
- Stacktrace.cs
- NamespaceEmitter.cs
- ScrollChrome.cs
- DPTypeDescriptorContext.cs
- OrderByBuilder.cs
- LoadedOrUnloadedOperation.cs
- HtmlInputControl.cs
- TextTreeTextNode.cs
- TextDecoration.cs
- DocumentNUp.cs
- CryptoApi.cs
- PackageStore.cs
- ScriptIgnoreAttribute.cs
- HttpCookieCollection.cs
- TdsEnums.cs
- PagedDataSource.cs
- TraceProvider.cs
- ObjectConverter.cs
- SimpleType.cs
- PartialTrustHelpers.cs
- VectorKeyFrameCollection.cs
- FixedTextContainer.cs
- CqlQuery.cs
- SharedConnectionInfo.cs
- DynamicObjectAccessor.cs
- SafeFileMappingHandle.cs
- bindurihelper.cs
- WindowExtensionMethods.cs
- SystemWebCachingSectionGroup.cs
- UITypeEditor.cs
- SecurityContext.cs
- QueryOperationResponseOfT.cs
- XLinq.cs
- MLangCodePageEncoding.cs
- ObjectHandle.cs
- OpacityConverter.cs
- ApplicationActivator.cs
- Char.cs
- StyleSelector.cs
- InitializationEventAttribute.cs
- CachedCompositeFamily.cs
- BinaryUtilClasses.cs
- LineServices.cs
- OdbcStatementHandle.cs
- ConsoleTraceListener.cs
- ProcessModelInfo.cs
- MemberAssignment.cs
- ItemsControl.cs
- XmlBinaryReader.cs
- Brushes.cs
- CompilerResults.cs
- TypeHelper.cs
- ResizingMessageFilter.cs
- InputElement.cs
- CreateParams.cs
- AppDomainProtocolHandler.cs
- HttpConfigurationContext.cs
- FileDataSourceCache.cs
- ListViewItemSelectionChangedEvent.cs
- FileUpload.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- ResourcePermissionBaseEntry.cs
- ContextMenu.cs
- Item.cs
- ListControl.cs
- TypeGenericEnumerableViewSchema.cs
- counter.cs