Code:
/ FX-1434 / FX-1434 / 1.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
- BmpBitmapDecoder.cs
- DSASignatureDeformatter.cs
- CompilerWrapper.cs
- Deserializer.cs
- JsonReaderDelegator.cs
- CursorConverter.cs
- PersonalizationEntry.cs
- HttpWebResponse.cs
- Debugger.cs
- PartitionerStatic.cs
- SimpleMailWebEventProvider.cs
- SR.cs
- ViewValidator.cs
- MessageBuilder.cs
- BlockingCollection.cs
- BitmapSourceSafeMILHandle.cs
- WebHeaderCollection.cs
- CharKeyFrameCollection.cs
- DeadCharTextComposition.cs
- BackEase.cs
- SettingsPropertyValueCollection.cs
- GridItem.cs
- DbTypeMap.cs
- FileNotFoundException.cs
- Converter.cs
- InternalBufferOverflowException.cs
- CalendarDay.cs
- EventLogConfiguration.cs
- ByteAnimationUsingKeyFrames.cs
- ParserContext.cs
- ComboBox.cs
- DataGridViewRowPostPaintEventArgs.cs
- ScopelessEnumAttribute.cs
- ConnectionStringSettings.cs
- QilReference.cs
- DocumentViewerBaseAutomationPeer.cs
- Speller.cs
- DataComponentGenerator.cs
- SrgsRule.cs
- FrugalList.cs
- DataGridViewComboBoxEditingControl.cs
- StatusBar.cs
- TypeNameHelper.cs
- StrokeNodeData.cs
- ActivityBuilderHelper.cs
- WorkflowHostingResponseContext.cs
- ContentPropertyAttribute.cs
- RelationshipEntry.cs
- WebPageTraceListener.cs
- IntegerValidatorAttribute.cs
- SqlTopReducer.cs
- ExpressionEditorAttribute.cs
- COM2ExtendedUITypeEditor.cs
- Marshal.cs
- DetailsViewDeletedEventArgs.cs
- ParsedAttributeCollection.cs
- xmlfixedPageInfo.cs
- StrongBox.cs
- WinEventWrap.cs
- CaseStatement.cs
- MetadataPropertyCollection.cs
- Events.cs
- ServicePointManagerElement.cs
- nulltextnavigator.cs
- odbcmetadatacollectionnames.cs
- QilInvoke.cs
- TextSimpleMarkerProperties.cs
- KnownColorTable.cs
- TraceLevelStore.cs
- _SafeNetHandles.cs
- XmlSchemaImport.cs
- OutOfMemoryException.cs
- TreeNodeCollectionEditor.cs
- DataSetMappper.cs
- XhtmlConformanceSection.cs
- ExtractorMetadata.cs
- RoutingSection.cs
- DetailsViewDeletedEventArgs.cs
- HwndTarget.cs
- HybridWebProxyFinder.cs
- ToolStripOverflowButton.cs
- FileSystemEnumerable.cs
- BindingContext.cs
- RelationshipEndMember.cs
- SkewTransform.cs
- TransformDescriptor.cs
- SyndicationElementExtensionCollection.cs
- TableChangeProcessor.cs
- CTreeGenerator.cs
- PrinterUnitConvert.cs
- ScriptModule.cs
- ItemPager.cs
- ImageInfo.cs
- COM2AboutBoxPropertyDescriptor.cs
- DetailsViewPageEventArgs.cs
- Currency.cs
- CustomLineCap.cs
- TableLayoutPanel.cs
- ScriptingSectionGroup.cs
- IResourceProvider.cs