473,799 Members | 2,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7410
aegis <ae***@mad.scie ntist.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**********@w eb.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.scie ntist.com> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.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)

iD8DBQFBwGpJagV FX4UWr64RArLiAJ 9uccuWUUunxNjj2 +E9gC6loQ2PYgCg yXrp
6NlJdyt4BbThfSQ 9yQvEvw4=
=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************ ********@comcas t.com>,
Merrill & Michele <be********@com cast.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**********@w eb.de> writes:
aegis <ae***@mad.scie ntist.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_Keit h) 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

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

Similar topics

3
6702
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 more precisely? Regards, James Harriman v38zy@unb.ca
13
3294
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 time.time() doesn't appear to be suitable, since time might jump forwards or backwards at the user's whim, if the system clock is reset, or when a daylight savings time change occurs. Using time.clock() doesn't appear to be suitable on Linux,...
8
3410
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 benchmark some function calls for Zope project and when I use t0=time.clock(); foo(); print time.clock()-t0 I get much smaller values than when I use time.clock() (most of them 0.0 but some 0.01) When I use time.time() I get values like...
33
47636
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
1771
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. The results are not really usable however as it seems to display the amount of CPU time which for my application is much lower than the total run time. Is possible to use hotshot with wall clock time, i.e. is it possible to have the code fragment...
54
4029
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 would not. After careful testing and reprogramming I have optimized the code so it should work every time, however I recommend that you leave the room while it is running and think of something else. It takes about 5 minuets to run so it is...
5
4944
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 does the job on Windows Xp. However, the code is not portable, as it fails to compile on Linux Red Hat. This is the command and the errors: # gcc -c time_loop.c time_loop.c: In function 'main':
2
8911
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 gettimeofday() as below to calculate walltime, struct timeval tv1,tv2; struct timezone tz1, tz2; gettimeofday(&tv1,&tz1);
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10250
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.