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
- TopClause.cs
- RecognizerStateChangedEventArgs.cs
- _AutoWebProxyScriptWrapper.cs
- PointUtil.cs
- DLinqDataModelProvider.cs
- ProxyFragment.cs
- CodeAttributeArgumentCollection.cs
- IgnoreSection.cs
- DataAdapter.cs
- AttributeAction.cs
- KeyTimeConverter.cs
- SchemaMerger.cs
- AssertFilter.cs
- BasicHttpMessageSecurity.cs
- XmlParser.cs
- PropertyIdentifier.cs
- EntityTransaction.cs
- ListViewItem.cs
- BinaryUtilClasses.cs
- SafeHandles.cs
- XmlSchema.cs
- Currency.cs
- EventSetter.cs
- Decimal.cs
- Rijndael.cs
- CurrentTimeZone.cs
- assemblycache.cs
- COM2FontConverter.cs
- RegexInterpreter.cs
- QueryableDataSourceView.cs
- SmiConnection.cs
- ConfigXmlComment.cs
- EventProviderClassic.cs
- CodeGroup.cs
- ConsoleTraceListener.cs
- CacheForPrimitiveTypes.cs
- FontDialog.cs
- HtmlTable.cs
- CancellationState.cs
- CodeComment.cs
- ExpressionVisitor.cs
- EmptyEnumerable.cs
- OletxResourceManager.cs
- DataObjectCopyingEventArgs.cs
- WebEventCodes.cs
- SizeIndependentAnimationStorage.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- ISAPIRuntime.cs
- ExpressionWriter.cs
- followingquery.cs
- PermissionSet.cs
- BinaryNode.cs
- ToolStripProgressBar.cs
- FormViewUpdatedEventArgs.cs
- XPathEmptyIterator.cs
- XamlTypeMapperSchemaContext.cs
- ContextQuery.cs
- LicenseException.cs
- GuidelineSet.cs
- DataSet.cs
- ArrayElementGridEntry.cs
- XmlSchemaObjectTable.cs
- PersonalizationState.cs
- ConfigDefinitionUpdates.cs
- Stackframe.cs
- ObjectViewEntityCollectionData.cs
- OdbcError.cs
- PropertyGeneratedEventArgs.cs
- SoapInteropTypes.cs
- StylusLogic.cs
- diagnosticsswitches.cs
- SendingRequestEventArgs.cs
- OdbcDataReader.cs
- EventItfInfo.cs
- CodeMemberProperty.cs
- CodeObject.cs
- ClientProxyGenerator.cs
- FileResponseElement.cs
- EntityDescriptor.cs
- DPTypeDescriptorContext.cs
- TrackingAnnotationCollection.cs
- precedingsibling.cs
- DbConnectionStringBuilder.cs
- DataGridCellClipboardEventArgs.cs
- SuppressMessageAttribute.cs
- PaintEvent.cs
- EntityDataSource.cs
- AnnotationHelper.cs
- MetadataItemEmitter.cs
- SpeakProgressEventArgs.cs
- ScriptingWebServicesSectionGroup.cs
- ShutDownListener.cs
- SingleObjectCollection.cs
- CharacterHit.cs
- OptimisticConcurrencyException.cs
- GeneralTransform.cs
- ChannelManagerService.cs
- MsdtcClusterUtils.cs
- UnsafeNetInfoNativeMethods.cs
- SqlPersistenceWorkflowInstanceDescription.cs