473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

wall clock time

What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.

--
aegis

Nov 14 '05 #1
12 7371
aegis <ae***@mad.scientist.com> wrote:
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


Well its the time that your clock on the wall shows.
There need not be any tool, function or else that provides
your C programs with this information, system specific extensions make
make this available.

--
Z (zo**********@web.de)
"LISP is worth learning for the profound enlightenment experience
you will have when you finally get it; that experience will make you
a better programmer for the rest of your days." -- Eric S. Raymond
Nov 14 '05 #2
"aegis" <ae***@mad.scientist.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
What is wall clock time?
I don't know of any standardized meaning for it, but
I'd guess it means 'local time'.
the standard doesn't define it
Nope.
but I see its use in past posts on clc.


Perhaps if you give context, we could figure out
what the poster(s) meant.

-Mike
Nov 14 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

aegis wrote:
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


The term "Wall clock time" refers to the elapsed time that an activity
takes, and alludes to the method of timing such an activity: look at the
wall clock when the activity starts, look again when the activity ends,
compute the difference between the two times.

We use this term in contrast to "cpu time", which measures the elapsed
time that an activity takes, excluding all the time the computer is not
performing tasks for that activity (i.e. "data entry" time, etc.).

- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBwGpJagVFX4UWr64RArLiAJ9uccuWUUunxNjj2+E9gC 6loQ2PYgCgyXrp
6NlJdyt4BbThfSQ9yQvEvw4=
=5AOQ
-----END PGP SIGNATURE-----
Nov 14 '05 #4
>What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


The time according to a clock on a nearby wall, presuming it is
properly set. This clock would be set according to the local time
zone, and local daylight savings time conventions (if any). WHOSE
wall may be an issue if the user and the system are in different
time zones. A wall clock runs continuously, as distinguished from
a stopwatch.

A Football Game Clock runs only when plays are actually in progress,
and not during timeouts and between plays. A CPU time clock runs
only when the program is using the CPU. When a program is "using
the CPU" is a bit system-specific, but on a multi-tasking system
this generally does not include times the program is waiting for
input, is waiting for disk I/O, paging, or swapping, or is not
scheduled due to other programs running.

Gordon L. Burditt
Nov 14 '05 #5

"aegis"
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


At the risk of making the same error twice in a day, I think wall clock time
is OT as only the difference in time can be handled by C. Otherwise you're
making a system call. If you stipulate any particular t1 then wall clock
time is within the scope of ISO C. MPJ
Nov 14 '05 #6
In article <TP********************@comcast.com>,
Merrill & Michele <be********@comcast.net> wrote:
At the risk of making the same error twice in a day, I think wall clock time
is OT as only the difference in time can be handled by C.
What about the standard C function time()?
Otherwise you're
making a system call.


Why is a "system call" used by time() different than a "system call"
used by printf()? A standard C function may, or may not, do one or
more "system calls" but that is up to the implementation, i.e. it is
outside of the standard.

--
Göran Larsson http://www.mitt-eget.com/
Nov 14 '05 #7
Zoran Cutura <zo**********@web.de> writes:
aegis <ae***@mad.scientist.com> wrote:
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


Well its the time that your clock on the wall shows.
There need not be any tool, function or else that provides
your C programs with this information, system specific extensions make
make this available.


See <time.h>. The time() function gives you a representation of what
I'd refer to as "wall clock time" (as distinct from CPU time).

I suppose "wall clock time" could refer either to a given moment or to
an elapsed time; the latter can be computed by calling difftime().

No system specific extensions are necessary, unless you need some
particular resolution -- or unless you're using the phrase "wall clock
time" to refer to something other than what I'm thinking of.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #8
On Wed, 15 Dec 2004 13:16:20 -0600, Merrill & Michele wrote:

"aegis"
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


At the risk of making the same error twice in a day, I think wall clock time
is OT as only the difference in time can be handled by C. Otherwise you're
making a system call. If you stipulate any particular t1 then wall clock
time is within the scope of ISO C. MPJ

Wall clock time usually refers to time intervals. E.g. a program was
running for 10 seconds and used 4 seconds of CPU time. The 10 seconds
there is wall clock time, the 4 seconds isn't.

Lawrence

Nov 14 '05 #9
"Lawrence Kirby"
Merrill & Michele wrote:


"aegis"
What is wall clock time? the standard doesn't define it
but I see its use in past posts on clc.


At the risk of making the same error twice in a day, I think wall clock time is OT as only the difference in time can be handled by C. Otherwise you're making a system call. If you stipulate any particular t1 then wall clock time is within the scope of ISO C. MPJ

Wall clock time usually refers to time intervals. E.g. a program was
running for 10 seconds and used 4 seconds of CPU time. The 10 seconds
there is wall clock time, the 4 seconds isn't.


What chapter is that in C Unleashed (you guys didn't do the greatest job of
indexing. You did the bitshift stuff and I think a couple more, but the
only way for me to really find anything in that book is sit down and slog
through 400 pages. Maybe a cleaner presentation in version 2?)? MPJ
Nov 14 '05 #10
On Thu, 16 Dec 2004 12:03:03 -0600, Merrill & Michele wrote:

....
What chapter is that in C Unleashed (you guys didn't do the greatest job of
indexing. You did the bitshift stuff and I think a couple more, but the
only way for me to really find anything in that book is sit down and slog
through 400 pages. Maybe a cleaner presentation in version 2?)? MPJ


Well chapter 4 is about times and dates. I don't remember offhand if "wall
clock time" is mentioned specifically. It could have been but it isn't a
term that relates specifically to C.

I'm sure the indexing could be improved, but don't forget the chapter list
at the start. I don't see the need to slog through 400 pages to find
relevant sections. :-)

Lawrence


Nov 14 '05 #11

"Lawrence Kirby"
Merrill & Michele wrote:

...
What chapter is that in C Unleashed (you guys didn't do the greatest job of indexing. You did the bitshift stuff and I think a couple more, but the
only way for me to really find anything in that book is sit down and slog through 400 pages. Maybe a cleaner presentation in version 2?)? MPJ


Well chapter 4 is about times and dates. I don't remember offhand if "wall
clock time" is mentioned specifically. It could have been but it isn't a
term that relates specifically to C.

I'm sure the indexing could be improved, but don't forget the chapter list
at the start. I don't see the need to slog through 400 pages to find
relevant sections. :-)


The whole point of a reference text is that you HAVE FORGOTTEN the contents.
Merry Christmas, Lawrence. If you talk to Mr. Heathfield, tell him that C
dreams. MPJ
Nov 14 '05 #12
Merrill & Michele wrote:
"Lawrence Kirby"
Well chapter 4 is about times and dates. I don't remember offhand if "wall
clock time" is mentioned specifically. It could have been but it isn't a
term that relates specifically to C.
It gets a passing mention on page 123, as a cursory inspection of the
relevant chapter will reveal. I found it from scratch in about eight
seconds, so it was no real hardship that the term didn't appear in the
index.

I'm sure the indexing could be improved, but don't forget the chapter list
at the start. I don't see the need to slog through 400 pages to find
relevant sections. :-)

The whole point of a reference text is that you HAVE FORGOTTEN the contents.


"C Unleashed" is not a reference text.
Nov 14 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Harriman | last post by:
Hi, I need to be able to measure a time interval in milliseconds on a windows machine. I have tried using time.clock() but it appears to measure time in seconds...Is there a way to measure time...
13
by: Peter Hansen | last post by:
I would like to determine the "actual" elapsed time of an operation which could take place during a time change, in a platform-independent manner (at least across Linux/Windows machines). Using...
8
by: peterbe | last post by:
What's the difference between time.clock() and time.time() (and please don't say clock() is the CPU clock and time() is the actual time because that doesn't help me at all :) I'm trying to...
33
by: Pushkar Pradhan | last post by:
I'm using clock() to time parts of my code e.g. clk1 = clock(); /* code */ clk2 = clock(); /* calculate time in secs */ ...... clk1 = clock(); /* code */ clk2 = clock();
1
by: Geert Jansen | last post by:
Hi! I'm trying to profile an application that I believe is blocking on I/O for a significant amount of time. In trying to dig down where this happens, I profiled the application with hotshot....
54
by: CoreyWhite | last post by:
The following experiment is a demonstration of TIME TRAVEL. When writing this program, and testing it out I found that sometimes the program would engage itself in time travel but other times it...
5
by: pedro.ballester | last post by:
Hi everyone, I am struggling with the following problem. I would like to measure the wall clock time required to run a section of the code with a precision of milliseconds. The attached code...
2
by: anto.anish | last post by:
Hi - I have been using clock() for calculating CPU time and time() for calculating Wall time. However, since time() does not provided milli/ microsecond accurancy, i started using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.