Berkeley CSUA MOTD:Entry 14162
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

1998/6/2-4 [Computer/SW/OS/Windows] UID:14162 Activity:high
6/1     Is there any way to measure time to the nearest milisecond (or
        (less) under Windows NT 4?  Can someone tell me where I can find
        the answer to this question?  Thanx. -dcw
        \_ WINDOWS NT isnt accurate to the nearest millisecond.
        \_ If it's a Pentium (P5/P54C/P55c) you can read the performance
           counter registers which tell you the exact number of clock
           cycles since reset.  I believe the PPro/PII have something

#include <time.h>
clock_t start, finish;
start = clock();
  finish = clock();
  duration = double(finish - start)/CLOCKS_PER_SEC;

Routine     Required Header     Compatibility
clock       <time.h>            ANSI, Win 95, Win NT

The clock function tells how much processor time the calling process has
used. The time in seconds is approximated by dividing the clock return
value by the value of the CLOCKS_PER_SEC constant. In other words, clock
returns the number of processor timer ticks that have elapsed. A timer tick
is approximately equal to 1/CLOCKS_PER_SEC second. In versions of Microsoft
C before 6.0, the CLOCKS_PER_SEC constant was called CLK_TCK.

(this was taken fron MSVC++ 5.0 help files.  Note that clock() returns -1
if the clock is unavailable for some reason.) --emarkp
           similar.  486 doesn't.  AMD, Cyrix, etc.: dunno.  --phr
        \_ KeQueryPerformanceCounter and if 1 microsecond is not good
           enough, look at http://www.sysinternals.com/sysperf.htm -tracs
        \_ Using Visual C++ 5.0, there was some ftime function that
           put ms info into a structure. good for random seeds -jctwu
           \_ You idiot, there's only 20 bits in a microsecond.
              \_ you idiot, it should be "there ARE only 20 bitS...."
                                                        - your english prof.
              \_ in theory 20 bits is bad, but it works really well
                 in practice - mail me if you want to talk about it
                 -jctwu
        \_ look for clock() in the MSVC++ 5.0 help files -- emarkp (abridged)
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2007/4/13-16 [Computer/SW/WWW/Browsers] UID:46291 Activity:nil
4/13    I use IE7 to browse a web site, and the server says the UserAgent
        string is
        "UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
        CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
        Is MS bowing to the Mozilla community?
        \_ What are you talking about?  IE has always reported its UserAgent
	...
2004/7/13-14 [Computer/SW/WWW/Browsers] UID:32251 Activity:very high
7/12    In the news...
        "Continuing security problems have eroded Internet Explorer's
        popularity; the market share for Explorer has dropped by more than a
        percentage point from 95.48 percent to 94.42 percent..."
        Gee that's gotta hurt! Poor MS.
        \_ Although if you read a report that said non IE browsers have gained
	...
2003/2/17-18 [Computer/SW/OS/Windows] UID:27444 Activity:very high
2/17    Does WinME or Win2K Home Ed require less CPU power and memory?  Thanks.
        \_ cpu/memory?  That's the basis of your OS decision?  ME is a flaming
           pile of goose dung.  Use 2k.  There was never a reason for ME to
           ship except maybe MS's bottom line.
           \_ Yeah.  I'm setting up a PC for my wife, and all she does is
              running Excel and checking her Outlook mail in a browser over a
	...
2003/1/8-9 [Computer/SW/OS/Windows, Computer/SW/OS/OsX] UID:27030 Activity:very high
1/8     I'm really tempted to buy a powerbook.  The design and the OS is
        what I like.  But I'm worried about the small things.  I know that
        there's MS office, so no problem there.  But what about:
        1. sharing info on floppy with a PC?
           \_ get a USB disk drive.
        2. ability to use network printers with winNT print servers?
	...
2002/5/21-22 [Computer/SW/OS/Windows] UID:24905 Activity:moderate
5/21    M$ Software so buggy that protocols and api's can't be made
        public without compromising national security:
        http://www.eweek.com/article/0,3658,s%253D701%2526a%253D26875,00.asp
        \_ Not good enough for nuclear reactors or air traffic control, but
           good enough for nuclear missles and banking.
           \_ Because, like hey, its only a few nukes and some other people's
	...
2001/10/25 [Computer/SW/OS/Windows] UID:22824 Activity:high
10/25   NT was supposed to be much more stable than Win3.x.  Then Win2k was
        supposed to be much more stable than NT.  And now XP is supposed to
        be much more stable than 2k.  Sigh.
        \_ Thing is, Win2k really is more stable than NT. Sure, it locks up
           occassionally, but not the seemingly hourly BSODs in NT
        \_ Also, XP supposedly "does away with the decades-old DOS fundamentals
	...
2001/2/23 [Computer/SW/OS/Windows] UID:20653 Activity:insanely high
2/22    Let's do a political-OS correlation poll. I am a:
        Democrat and Linux user: .
        Democrat and Un*x user: ...
        Democrat and Mac* user: .
        Democrat and Windows* user: .
        Republican and Linux user:
	...
2000/9/15-18 [Computer/SW/OS/FreeBSD] UID:19260 Activity:high
9/15    What's up with soda recently? Why all of the reboots? Maybe
        its time to upgrade to FreeBSD 4.1 Stable? Or OpenBSD 2.7?
        \_ There aren't REBOOTS, child, they are CRASHES.  Soda is less
        \_ They aren't REBOOTS, child, they are CRASHES.  Soda is less
           stable than my NT workstation at work.
           \_ what do you use your NT box for? A door stop? A paper
	...
2000/8/3 [Computer/SW/OS/FreeBSD] UID:18855 Activity:nil
8/2     http://abcnews.go.com/sections/tech/FredMoody/moody.html
        \_ yeah, that's why I run openbsd - paolo
                \_ Me too but that isn't why the guy is wrong.
                   \_ I'm running FreeBSD instead of OpenBSD
                      because Free has a native jdk. I know its
                      not as secure, but I gotta have servlets.
	...
2000/5/19-22 [Computer/SW/OS/Solaris] UID:18301 Activity:high
5/19    I'm writing a device driver for Solaris to access our PCI board.
        I want to allow unlimited xxx_open() calls to the board in
        read-only mode, but only one xxx_open() call in read-write
        mode. I tried doing this with a flag to indicate that the board
        is open in read-write only, but what I can't seem to figure
        out is how to match a xxx_open() to the corresponding
	...
1999/12/28-30 [Computer/HW/Drives, Computer/SW/OS/Windows] UID:17112 Activity:high
12/28   Please point me to info (URL,etc.) on Clustering NT machines.
        \_ http://www.microsoft.com/hwtest/sysdocs/wolfpackdoc.htm
           There's more if you search for "wolfpack" on the MS site.
        \_ BWQAAAA-haaaa-haaaaahaaaaaaa... that's a good one, that is.
           Got any more jokes?
            \_  Hmm, should i assume from that response that this can't be
	...
1999/10/24-25 [Computer/SW/Unix] UID:16757 Activity:nil
10/21   Lesson request:  I'm on a slow network of MS computers, with a
        huge backup running and sucking up all the bandwidth.  When i try
        computer one to to large copy a file from Windows another it is
        very slow, but if i use FTP, it is very fast.  What up?  (I'm
        hoping for something a little more technical than "MS sucks").
        \_ NetBEUI!
	...
Cache (163 bytes)
www.sysinternals.com/sysperf.htm
Sysinternals File or Page Not Found Possible malformed HTTP request detected. Appearently you have requested a page or file that is not located on this web server.