473,395 Members | 1,377 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.

Making a Timer Function (Stopwatch Function)

114 100+
Hello.
I am making a Stopwatch program in C.
Can anyone help?
Is it possible to make a timer(stopwatch) function in C?
Jul 16 '07 #1
8 5434
mac11
256 100+
yes it's possible (in fact I think you can build just about any sort of program with c)

If your using linux you can look into gettimeofday()
http://threads.seas.gwu.edu/cgi-bin/...fday&section=2

If your using Windows there has to be another way of getting the time, so search your docs for that instead.
Jul 16 '07 #2
Banfa
9,065 Expert Mod 8TB
If you are using Windows look up/search for

GetSystemTime(...)

or

GetSystemTimeAsFileTime(...)
Jul 16 '07 #3
Firecore
114 100+
If you are using Windows look up/search for

GetSystemTime(...)

or

GetSystemTimeAsFileTime(...)
I see.
Thanx for that.
I'll ask for help if I need it.
I jus needed someone to point me in the right direction.
Jul 17 '07 #4
totoy
5
have you figured out how to make a stopwatch yet? if so,help
Sep 21 '07 #5
sicarie
4,677 Expert Mod 4TB
have you figured out how to make a stopwatch yet? if so,help
I'll give you a hint - they pointed the OP in the right direction (and it's the right direction for you as well).

Have you Googled those yet?
Sep 21 '07 #6
totoy
5
I'll give you a hint - they pointed the OP in the right direction (and it's the right direction for you as well).

Have you Googled those yet?
im trying to,its just there are too many junk in the net you cant even use
Sep 22 '07 #7
totoy
5
how can i find my posted question?
Sep 22 '07 #8
Banfa
9,065 Expert Mod 8TB
how can i find my posted question?
Top right of the page select control panel, all your subscribed recently posted to threads are listed.

If it is not in that list on that page on the right towards the bottom select "View All Subscribed Threads"
Sep 23 '07 #9

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

Similar topics

4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
8
by: Xero | last post by:
Hello. Could anybody suggest a way to create a timer? I want to timer to be displayed to the user, telling he or she how much time has passed. Thanks. -- Xero
2
by: av | last post by:
im having a hard time creating a timer in vb.net.. the program should run this way: the timer should only start when you press a button then stops when presing it again.. my problem is that, how...
18
by: dbahooker | last post by:
team i'm having a tough time getting these data readers to work correctly I'd just like to be able to centralize my GetDataReader functions; so i can pass a simple SQL statement and be passed...
5
by: muzilli | last post by:
Howdy all, I would like to know how can I insert a Timer object in my class library? This timer object will start and stop in a determinated part or event of my program. I know how to do...
0
by: theprogrammer01 | last post by:
i needed to use the timer function as a stopwatch to put a start time and a end time in two different cells on a worksheet
0
by: bg_ie | last post by:
Hi all, I'm writing a .net Com object to read messages from an external bus. Also, under certain situations, I output messages to the bus in order to generate bus load, for testing purposes. An...
19
by: Jon Slaughter | last post by:
Is it possible to have a synchronous thread... actually a timer that is beyond the 1khz/1ms resolution that .NET offers? I want to poll the parallel port at rates beyond 1khz... about 10 to 100...
9
by: eljainc | last post by:
Hello, I'm having a problem with a simple application that I've written. I have a form that loads another form. The second form has a timer control on it. The timer will not fire for some...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.