|
|
|
.NET Namespaces (1904) .NET Framework Namespaces | Applications (883) Management, Email, Graphics, Search.. | Articles & Samples (37099) Assembly, Caching, Controls, Reflection.. | Community (94) Conferences, Chat Rooms, Jobs, Training.. | Component & Controls (994) Forums, Management, Email, more.. | Developers Sites (130) Sites dedicated to developer community.. | Developers Training (233) Training CD-ROMs, Videos, Courseware.. | Downloads (314) Service Packs, Code, Msdn Show.. | Hosting Services (137) ASP and ASP.Net Hosting sites.. | Introduction (334) ASP, ADO.Net, C#, VB.NET, XML | Knowledge Base (2200) Knowledge Base Articles, Samples, Tutorials, HowTos... | Sample Chapters (222) Sample Chapters from Developer Books.. | Silverlight (169) Silverlight | Support WebCasts (635) Microsoft's Support WebCasts |
|
|
|
|
Total Hits: 27 | Today: 1
|
Author: Dean Wyant
|
Rating:
|
|

High resolution timing is supported in Win32 by the QueryPerformanceCounter and QueryPerformanceFrequency API calls. The timer resolution varies with the processor. Today's high speed processors have a timer resolution of less than a microsecond. Of course, this is a much better resolution than the GetTickCount API! Using the QueryPerformanceCounter calls directly takes too much typing and the resulting code is usually hard to read. So, I looked all over the net for a timer class but I could not...
|
|
|
|
Total Hits: 36 | Today: 2
|
Author: Victor Vogelpoel
|
Rating:
|
|

For a little project of mine, I needed to convert a serial date number to day/month/year (DMY) and vise versa. The serial number came from date field in a converted Paradox database and seemed to be exactly the same as the serial date in Microsoft Excel, hence the article name. After some googling I learned that the Excel serial date is related to Julian date, and found a speedy algorithm to convert these numbers to DMY and vise versa....
|
|
|
|
Total Hits: 19 | Today: 1
|
Author: Patrik Svensson
|
Rating:
|
|

This is my first attempt ever to write an article of any kind. I don't have much experience in programming, but I would love some feedback about this article in order to learn. English is not my primary language so be nice to me. :-) I'm currently working on a calender application with a friend of mine, and knowing the weekday and the weeknumber is somehow fundamental. ;) I can't remember where I found the algorithms and information necessary to know how to retrieve the weekday and weeknumber, b...
|
|
|
|
Total Hits: 19 | Today: 1
|
Author: John P. Curtis
|
Rating:
|
|

NB.A Multimedia timer is actually a seperate high priority thread so all the normal multithreading issues apply. As with worker threads, MFC objects should not be called directly from a timer callback due to the Handle Map hoodoo stored in the CWinThread local storage. CMultimediaTimer is not GUI specific as I use it to handle periodic activity in console applications....
|
|
|
|
Total Hits: 19 | Today: 1
|
Author: skarapanahalli
|
Rating:
|
|

When you use the Microsoft Automation functions VariantTimeToSystemTime to convert variant time to system time and the SystemTimeToVariantTime to convert system time to variant time, the milliseconds value appears as zero or is ignored. This is known issue documented in MSDN knowledge base, under ID Q297463. However many times ignoring milliseconds is not a option. Two simple functions wrapping the original API functions can be used to convert SystemTime to VariantTime and vice versa without loo...
|
|
|
|
Total Hits: 25 | Today: 2
|
Author: kian01
|
Rating:
|
|

Time-zone handling in .NET 2.0 is restricted to converting between UTC and local (usually server) time. However, in order to display DateTime correctly to users in different regions, in particular, in web applications, you need to be able to convert DateTime between UTC (which is what you should always store in your DB) and the target time zone....
|
|
|
|
Total Hits: 17 | Today: 2
|
Author: Michael Dunn
|
Rating:
|
|

So you thought Y2K was behind us all? Not entirely. I've had some Y2K thoughts bouncing around in my head for a while, and with the new millennium really upon us now, I thought it would be a good time to talk about Y2K bugs and why you still need to be wary of them when writing code. This article talks about Y2K issues that were never addressed during the media blitz of 1999. The ideas can be applied to any programming language....
|
|
|
|
Total Hits: 29 | Today: 1
|
Author: Ravi Bhavnani
|
Rating:
|
|

This article describes TaskTimer, a lightweight object that lets you easily track a task's elapsed and remaining times. Although there are various CodeProject articles that describe this functionality, this article separates the GUI aspect of progress display from the time computation. Because TaskTimer isn't part of any control or dialog, you can make use of its functionality in any user interface. TaskTimer also handles pausing and restarting the task being timed....
|
|
|
|
Total Hits: 20 | Today: 2
|
Author: RK_2000
|
Rating:
|
|

Aside from strings, another area where things are probably a little more messy in the C++ and Windows world than it needed to be, has to be the date and time area. Starting with C and with every library added, there are so many ways to get the date and time that people can easily get confused. So in this article I hope to summarize and somewhat simplify the various date and time functionalities in Windows C++....
|
|
|
|
Total Hits: 13 | Today: 1
|
Author: Mark VanTassel
|
Rating:
|
|

Everyone has used good old time(NULL) to get timings accurate to the second. Some of you may have used GetSystemTime() to get sub-second timings. The really clever have found QueryPerformanceFrequency and QueryPerformanceCounter, which give timings accurate to a millisecond or better (for the record, I'm not among the really clever - I found out about those two by reading the Python documentation... Thanks, Guido!)....
|
|
|
|
Total Hits: 18 | Today: 0
|
Author: Håkan Still
|
Rating:
|
|

The CHighTime and CHighTimeSpan are two classes for replacement of COleDateTime and COleDateTimeSpan. Instead of using a double for storing the date, it uses a 64 bit integer to store the date and time. The range is +/-29000 years and the smallest time span is 0.1 microseconds. As "everybody" knows that accuracy of floating point is not so good with small values. My experience says COleDateTime(Span) can not handle 1 second time and spans correctly. Sometimes I would get: (2sec-1sec) != 1sec ......
|
|
|
|
Total Hits: 25 | Today: 0
|
Author: Chris Maunder
|
Rating:
|
|

Tray Calendar is a freeware utility that I wrote after being amazed that 1. Microsoft did not bother to offer us a calender in the tray, and 2. People were charging good money for tiny little tray apps. The idea is simple: Put the day of the month next to the clock in the system tray. It tells you todays date, and will update the number displayed when the date changes. 20 seconds after it starts it will reshuffle itself so that it is the right-most icon in the tray. This is usefu...
|
|
|
|
|
|