Welcome to MSDN Blogs Sign in | Join | Help

Why doesn't the clock in the taskbar display seconds?

Early beta versions of the taskbar clock did display seconds, and it even blinked the colon like some clocks do. But we had to remove it.

Why?

Because that blinking colon and the constantly-updating time were killing our benchmark numbers.

On machines with only 4MB of memory (which was the minimum memory requirement for Windows 95), saving even 4K of memory had a perceptible impact on benchmarks. By blinking the clock every second, this prevented not only the codepaths related to text rendering from ever being paged out, it also prevented the taskbar's window procedure from being paged out, plus the memory for stacks and data, plus all the context structures related to the Explorer process. Add up all the memory that was being forced continuously present, and you had significantly more than 4K.

So out it went, and our benchmark numbers improved. The fastest code is code that doesn't run.
Published Friday, October 10, 2003 1:28 PM by oldnewthing
Filed under:

Comments

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 1:30 PM by Israel
Damn! It's like you've got a direct connection to all the forgotten, unanswered questions in my mind from the Windows 95 introduction.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 1:46 PM by runtime
I would go crazy if the clock updated every second and the colon flashed. Too visually distracting..

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 2:28 PM by Joe
I actually like it. I even set up my own clock in the taskbar. Using the cool feature of "New Toolbar..." I point the New Toolbar at a URL not unlike http://jwasson.bitfield.org/clock.html . It's a DHTML clock that supports seconds and also has a roll-over that shows the date. You can see how it looks in context at http://jwasson.bitfield.org/desktop.jpg (461KB).

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 2:34 PM by Mike Dunn
I agree, runtime. Motion attracts the eye, and if the clock were always blinking or changing text, that would get annoying fast. And BTW, I actually did install Win 95 on the min requirements once: a 386 with 4MB. I think that's what hell is like. ;)

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 2:56 PM by Troy Goode
Joe, how did you get your address bar and quick launch bars to dock outside of the taskbar? I've tried dragging them around and they don't seem to want to leave...

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 3:39 PM by Joe
Troy: It seems that you need to make an intermediate step of dragging them "onto the desktop." They then float, and you can then dock them on a different edge. Mike: Motion attracts my eye as well, but I must be used to it, or something, because I don't notice the seconds ticking away, unless I'm looking at something within a couple of inches and purposefully looking in my peripheral vision for the movement.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 5:04 PM by Ryan Eibling
My problem with the clock has always been the lack of control over the display format. I've been running a freeware third-party clock just so I can get a date and time in there without making my taskbar huge. I have no idea why they couldn't have allowed you some choices over how it displays by now. Except for internet sync the clock doesn't seem to have improved since Win95.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 6:10 PM by Mike Dimmick
Funny, I've noticed a difference between Windows 2000 and XP on this score. I usually resize my taskbar to two units high - I tend to keep a lot of windows open (currently I only have three, but then I'm at home browsing - Outlook, Scobleizer and this site). I don't use XP's 'group taskbar buttons' because to me that's fundamentally broken - a taskbar button represents a document, not an application. If I could only group documents together... Sorry, I digress. Anyway, on Windows 2000 (en-GB locale), a two-unit taskbar shows just the time above the notification icons (if fewer than six, otherwise the notification icons appear to the left of the time). On Windows XP, I get the day name above the time (e.g. 'Friday<br>23:08'). Any ideas why this was changed? I assume something to do with the 'hide inactive notification icons' function.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 7:41 PM by Raymond Chen
If there is extra space in the taskbar for it (e.g., you resized the taskbar to two rows), then XP will show the day of the week. The clock uses your preferred time and date formats as set in the Regional Settings. Not sure why that's not good enough. Letting you customize the clock time/date format separately from the other time/date formats is a "little feature". A previous blog discussed <http://blogs.gotdotnet.com/raymondc/PermaLink.aspx/4a65f700-ee90-43be-9676-bc33e0f8dfbf> the cost of "little features". (For this one, there would have to be another customization dialog box - more code and more work for the translators - the setting would have to be saved somewhere - more work for testers to run the dialog through all its variations, and now what do you do if that setting gets corrupted? Or the people who call product support asking how come their date looks good everywhere except the taskbar...)

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 8:23 PM by Ryan Eibling
I don't care much about the specific format of the date string as much as the fact that I can't even have the date shown at all on a single-height taskbar on the same line as the time. The TClockEx app I use replaces the Windows clock and allows me to specify exactly what appears in that space with a format string. I use "ddd MM-dd HH:mm", which gives me a nice, compact, one-line representation of everything I need.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 8:38 PM by Yeep
The time in the notification area even shows the date on my home PC. I don't recall setting this up specifically. My work PC does not show the date. Both PC's have their taskbars 2 units high. I can't find any setting to change this.

# RE: Why doesn't the clock in the taskbar display seconds?

Friday, October 10, 2003 10:06 PM by Shane King
I just wish it had an option for an analogue style clock. You can fit one of those onto the taskbar when it's docked to the left of the screen, which you can't do for a digital readout.

# RE: Why doesn't the clock in the taskbar display seconds?

Saturday, October 11, 2003 1:07 AM by Raymond Chen
Believe it or not, we actually did studies on the possibility of having an analog clock. Problem is, some disturbingly large percentage of people can't read an analog clock (30%? 60% I forget but it was a lot). But the main reason for not having an analog clock was that it would be yet more code to be written, tested, and documented. You have to draw the line somewhere or you'll be constantly adding features and never ship. Windows 95 was originally Windows 93, after all.

# RE: Why doesn't the clock in the taskbar display seconds?

Saturday, October 11, 2003 5:21 AM by RJ
30%-60% can't read an analogue clock? Surely not, I certainly don't believe this figure true of the UK. Do/Did Microsoft do all their studies just in the US? or did they ever ask users abroad ?

# RE: Why doesn't the clock in the taskbar display seconds?

Saturday, October 11, 2003 9:07 AM by Myron A. Semack
I hate analag clocks, despise them with a passion. I don't want to have to "figure out" what time it is based on the hands. I just want to read the damn thing and know exactly what time it is. Also, most analog clocks/watches are these ornate decorative things that don't even have numbers, or minute marks on them. God forbid they should have something useful on them. You're more prone to make a mistake reading an analog clock. It's not that I can't read an analog, but I really don't want to.

# RE: Why doesn't the clock in the taskbar display seconds?

Sunday, October 12, 2003 3:29 PM by Israel
You are now the top Chen in Google!!!

# RE: Why doesn't the clock in the taskbar display seconds?

Monday, October 13, 2003 12:36 PM by Raymond Chen
Windows is a worldwide product. If 30%-60% of users in a single market can't read an analog clock - it doesn't matter whether the market is the US, UK, Germany, Japan - then we can't do it. Personally I prefer analog clocks. How often do you really need to know EXACTLY what time it is? You are really interested in deltas. "How long before the bus arrives?" With an analog clock, "Hm, a little less than a half-circle, so I've got a little less than a half hour." With a digital clock you have to do math (carry the 60...) If the bus comes at 12:04 and it is now 11:38, how much time do you have, roughly? You know how I solve this? I imagine an analog clock!

# RE: Why doesn't the clock in the taskbar display seconds?

Monday, October 13, 2003 12:37 PM by Raymond Chen
For a while, I watched myself gradually become the top Raymond Chen. (There are lots of us out there, and I was #3 or so at the start.) What is scarier is that I'm also the top hit for "interesting articles". Talk about pressure!

# RE: Why doesn't the clock in the taskbar display seconds?

Monday, October 13, 2003 3:16 PM by Israel
Your competition for the top ten in "Interesting Articles" search aren't exactly exciting-I would venture to say that your spot is secure for now!

# RE: Why doesn't the clock in the taskbar display seconds?

Monday, October 13, 2003 9:56 PM by Mike Dunn
"If 30%-60% of users in a single market can't read an analog clock... then we can't do it." Can I infer from that that the alleged Longhorn shell screen shots with a big silver analog clock in the side bar are bogus? :)

# RE: Why doesn't the clock in the taskbar display seconds?

Sunday, October 19, 2003 10:49 PM by Mark Hurd
The analog clock available in the Date/Time control panel looks nice enough that it would be nice if a) it could have an option to hide all the rest of the dialog and b) people without permission to change the time/timezone can still open the applet to view it.

# RE: Why doesn't the clock in the taskbar display seconds?

Saturday, November 15, 2003 2:25 AM by Tony Coates
Need Help changing timezone/WinXP.....the only timezone available in the drop down is Pacific Time (US&Tijuana)......I have moved to the Central time, now I can't change.....wtfo? How do I fix?

# re: Why doesn't the clock in the taskbar display seconds?

Friday, May 14, 2004 10:58 AM by Andy Glover
Recently my clock on Windows XP home has been running fast, gaining quite a few seconds per minute. Is there a way to remedy this?

# re: Why doesn't the clock in the taskbar display seconds?

Friday, May 28, 2004 10:03 AM by Dean Jones
If your WindowsXP clock is running fast, try using the built in time sync feature. Open the clocks properties, click on the Internet Time tab, set the server for 128.138.140.44 and check the Automatically sync check box. If you click the Update Now box, your clock will sync with the time server. This will be automatically repeated once per week. Another alternative (for those without WindowsXP and the Internet Time tab) is to use a third party program like Atomic Clock Sync available from www.worldtimeserver.com which has a listing of several time servers built into their program.

# re: Why doesn't the clock in the taskbar display seconds?

Monday, June 07, 2004 7:52 AM by Raymond Chen
Comments on this entry have been closed.

# What's the difference between SHGetMalloc, SHAlloc, CoGetMalloc, and CoTaskMemAlloc

Monday, July 05, 2004 10:01 AM by The Old New Thing
There isn't any difference any more.

# What's the difference between SHGetMalloc, SHAlloc, CoGetMalloc, and CoTaskMemAlloc

Monday, July 05, 2004 3:05 PM by The Old New Thing
There isn't any difference any more.
New Comments to this post are disabled
 
Page view tracker