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
- TimeSpanMinutesOrInfiniteConverter.cs
- HijriCalendar.cs
- FormClosingEvent.cs
- XmlSchemaDocumentation.cs
- TimeManager.cs
- ResourceManager.cs
- SizeChangedEventArgs.cs
- DescendentsWalker.cs
- ProviderSettings.cs
- MSHTMLHost.cs
- TCPListener.cs
- ToolStripItemClickedEventArgs.cs
- BitmapEffectState.cs
- AnnotationHelper.cs
- DefinitionBase.cs
- SecurityKeyType.cs
- StylusEditingBehavior.cs
- ProcessHost.cs
- WorkflowServiceHostFactory.cs
- SettingsBindableAttribute.cs
- ActivityCodeDomSerializationManager.cs
- HandoffBehavior.cs
- PropertyDescriptor.cs
- HttpPostedFile.cs
- GridViewSortEventArgs.cs
- SerializationException.cs
- ScriptBehaviorDescriptor.cs
- WindowsTitleBar.cs
- MobileCategoryAttribute.cs
- SapiRecoInterop.cs
- DerivedKeySecurityToken.cs
- VBIdentifierDesigner.xaml.cs
- FilterableAttribute.cs
- BinaryHeap.cs
- VerificationException.cs
- HttpApplication.cs
- Pair.cs
- DataControlFieldHeaderCell.cs
- WebPartConnectVerb.cs
- TextBoxDesigner.cs
- TemplateInstanceAttribute.cs
- TreeViewAutomationPeer.cs
- FamilyTypefaceCollection.cs
- BlockCollection.cs
- CallbackDebugElement.cs
- COAUTHINFO.cs
- XMLUtil.cs
- PackageProperties.cs
- AttachedAnnotation.cs
- XmlFormatWriterGenerator.cs
- IISMapPath.cs
- ReverseInheritProperty.cs
- IgnorePropertiesAttribute.cs
- MediaEntryAttribute.cs
- MustUnderstandSoapException.cs
- CodeDomLoader.cs
- ProfileBuildProvider.cs
- BamlVersionHeader.cs
- DataGridViewTextBoxColumn.cs
- QueryCreatedEventArgs.cs
- DataObjectCopyingEventArgs.cs
- Transform.cs
- SerializationSectionGroup.cs
- ExtentCqlBlock.cs
- RepeatEnumerable.cs
- DataSourceProvider.cs
- WhereQueryOperator.cs
- AuthorizationRuleCollection.cs
- UpDownEvent.cs
- FormsAuthenticationTicket.cs
- PaperSource.cs
- TypeDelegator.cs
- HwndTarget.cs
- HierarchicalDataSourceDesigner.cs
- PersonalizationProviderCollection.cs
- HttpWriter.cs
- MultiPageTextView.cs
- KerberosSecurityTokenParameters.cs
- Command.cs
- InstanceContext.cs
- VarInfo.cs
- CalendarDateRangeChangingEventArgs.cs
- LayoutEditorPart.cs
- NavigationPropertySingletonExpression.cs
- JsonReader.cs
- Separator.cs
- ConfigurationElementProperty.cs
- EasingKeyFrames.cs
- MarginCollapsingState.cs
- PriorityChain.cs
- ExpressionEvaluator.cs
- OuterGlowBitmapEffect.cs
- DispatcherHookEventArgs.cs
- SimpleWebHandlerParser.cs
- ObjectDataSourceFilteringEventArgs.cs
- AbstractSvcMapFileLoader.cs
- Image.cs
- XamlFilter.cs
- Stroke2.cs
- CursorConverter.cs