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

1998/9/29-10/1 [Computer/SW/Languages/C_Cplusplus, Academia/Berkeley/Classes] UID:14702 Activity:kinda low
9/29    I'm timing an algorithm for cs170. The only library functions I
        could find in c/c++ are time_t which is not precise enough.  Is
        there something that measures milleseconds? -thnx
        \_ If this is that benchmarking thing for the strassen project, it's
           totally bogus, there's no easy way to benchmark the way they
           suggest.  I just wrote something like what they said they wanted
           and ran with it..  ~dbushong/pub/bench.c  --dbushong
        \_ In any case, _don't_ try running this on soda.. there are far
           too many processes running for you to get any sort of accurate
           timed benchmark.
        \_ Try playing on EECS instructional machines.  -- Grumpy
        \_ try playing with gettimeofday(). -ERic
        \_ getrusage() does microseconds and measures only time actually
           spent on your process, not other processes
           \_ gettimeofday() will get you absolute system time.  getrusage()
              gives you the amount of time the system kernel allocated to
              your process, which on a heavily used multiuser system, could
              be very different. --ERic
              \_ How about /usr/bin/time, or the shell built-in "time"
                 command?  -- yuen
                        \_ Those report both.
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2012/1/24-2/14 [Academia/Berkeley/Classes] UID:54297 Activity:nil
1/24    "What the Top 1% of Earners Majored In"
        http://finance.yahoo.com/news/top-1-earners-majored-163026283.html
        No EE/CS/EECS!
        \_ Yeah, you should have majored in Art History instead.
           \_ No you should have gone to Med Skool like every good asian
              parent says.
	...
2009/2/19-25 [Computer/SW/Languages/C_Cplusplus, Academia/GradSchool] UID:52600 Activity:low
2/19    Student Expectations Seens as Causing Grade Disputes:
        http://www.nytimes.com/2009/02/18/education/18college.html
        \_ "I tell my classes that if they just do what they are supposed to do
            and meet the standard requirements, that they will earn a C."
            All well and good, but the problem is that 2.0 is perceived
            as almost failing. Maybe once employers and grad schools
	...