Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsTitleBar.cs
- CompModSwitches.cs
- ConstraintEnumerator.cs
- BaseCodeDomTreeGenerator.cs
- LogLogRecord.cs
- CodeExpressionRuleDeclaration.cs
- RemotingConfigParser.cs
- SQLDoubleStorage.cs
- Matrix3D.cs
- TagPrefixCollection.cs
- AxisAngleRotation3D.cs
- SqlParameter.cs
- TextEditorSpelling.cs
- ProviderSettings.cs
- ToolstripProfessionalRenderer.cs
- BamlTreeMap.cs
- EntityWithChangeTrackerStrategy.cs
- __Filters.cs
- PenContext.cs
- DispatcherFrame.cs
- TickBar.cs
- BitFlagsGenerator.cs
- log.cs
- TogglePattern.cs
- DefaultValueAttribute.cs
- DragEventArgs.cs
- RegexCharClass.cs
- PolyBezierSegment.cs
- login.cs
- ParenExpr.cs
- Hash.cs
- ObjectView.cs
- ListenerElementsCollection.cs
- ViewManager.cs
- ExclusiveTcpListener.cs
- List.cs
- Merger.cs
- StylusPointPropertyInfoDefaults.cs
- Int16Animation.cs
- TypeDescriptionProviderAttribute.cs
- AsyncStreamReader.cs
- TypeLoadException.cs
- TagPrefixInfo.cs
- QueryStringParameter.cs
- FillErrorEventArgs.cs
- SortDescriptionCollection.cs
- InheritanceAttribute.cs
- HtmlInputHidden.cs
- TypeLoadException.cs
- TabRenderer.cs
- GcSettings.cs
- PerformanceCounterLib.cs
- HttpWrapper.cs
- BamlTreeNode.cs
- InkCanvasAutomationPeer.cs
- XNodeValidator.cs
- FontInfo.cs
- ObjectPropertyMapping.cs
- CategoryState.cs
- JulianCalendar.cs
- CodeAttributeDeclaration.cs
- ByteStream.cs
- Brush.cs
- RefExpr.cs
- TypeUnloadedException.cs
- DataGridViewUtilities.cs
- EventItfInfo.cs
- HierarchicalDataBoundControlAdapter.cs
- ServiceHttpModule.cs
- XmlRawWriter.cs
- TextBoxAutoCompleteSourceConverter.cs
- ObjectToken.cs
- XmlAggregates.cs
- SourceFilter.cs
- FloatUtil.cs
- DataObject.cs
- ComponentEditorForm.cs
- ProcessHost.cs
- PageParser.cs
- SortedList.cs
- UITypeEditor.cs
- BitStream.cs
- ValidationError.cs
- Hashtable.cs
- ImageFormat.cs
- COM2AboutBoxPropertyDescriptor.cs
- StylusButton.cs
- DataFormats.cs
- ServiceKnownTypeAttribute.cs
- FixedDSBuilder.cs
- ToolStripItemGlyph.cs
- ConfigXmlElement.cs
- TrackBarRenderer.cs
- OLEDB_Util.cs
- DayRenderEvent.cs
- WorkflowInlining.cs
- InheritanceContextChangedEventManager.cs
- OuterGlowBitmapEffect.cs
- ManagedWndProcTracker.cs
- FormsAuthenticationConfiguration.cs