473,473 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

process time

5 New Member
Gets the current time of day save it in “StartTimeW” and “StartTimeC”,
Gets the current time of day save in “EndTimeW” and “EndTimeC”,
Computes & displays the time it took to read and write the total file in:
a)CPU milli-seconds (amount of time your program used the CPU to do work)
b)Wall-clock milli-seconds (real-world time at start of program to real-world time at end of pro-gram)
Feb 12 '10 #1
7 3204
Banfa
9,065 Recognized Expert Moderator Expert
You haven't asked a question!
Feb 12 '10 #2
yodeeps
5 New Member
The question is that how to write the program for the statements.
Feb 12 '10 #3
donbock
2,426 Recognized Expert Top Contributor
The standard C time-functions are in <time.h>; and probably somewhere different for C++.
Feb 12 '10 #4
yodeeps
5 New Member
But i wanted the code for the starttime and the endtime of the program and the time it took to read the file.
Feb 12 '10 #5
Banfa
9,065 Recognized Expert Moderator Expert
That's easy the C++ header name is <ctime> it contains the same functions as the C header <time.h>

Simply read up on the functions in that header (there is a reference here) and then write the appropriate code to implement the functionality you want.
Feb 12 '10 #6
yodeeps
5 New Member
thats wat i am not getting the code!!!!!
Feb 12 '10 #7
donbock
2,426 Recognized Expert Top Contributor
@yodeeps
The experts on this site are not going to write the code for you. You need to do that yourself. If something doesn't work right then show us the relevant code, tell us what happened and what you expected to happen.

At this point, since you don't have any code for us to look at, we're trying to point you towards the relevant library functions. You should follow the references and at least identify which of <time.h>/<ctime> functions are relevant to your problem.
Feb 12 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
0
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,...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.