Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
Making a Timer Function (Stopwatch Function)
Making a Timer Function (Stopwatch Function)
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Firecore
New Member
Join Date:
Jul 2007
Posts:
114
#1
Making a Timer Function (Stopwatch Function)
Jul 16 '07, 11:33 AM
Hello.
I am making a Stopwatch program in C.
Can anyone help?
Is it possible to make a timer(stopwatch ) function in C?
mac11
Contributor
Join Date:
Apr 2007
Posts:
256
#2
Jul 16 '07, 01:43 PM
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/man2web?program=gettimeofday§ion=2
If your using Windows there has to be another way of getting the time, so search your docs for that instead.
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Jul 16 '07, 02:04 PM
If you are using Windows look up/search for
GetSystemTime(. ..)
or
GetSystemTimeAs FileTime(...)
Comment
Post
Cancel
Firecore
New Member
Join Date:
Jul 2007
Posts:
114
#4
Jul 17 '07, 06:16 AM
Originally posted by
Banfa
If you are using Windows look up/search for
GetSystemTime(. ..)
or
GetSystemTimeAs FileTime(...)
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.
Comment
Post
Cancel
totoy
New Member
Join Date:
Sep 2007
Posts:
5
#5
Sep 21 '07, 06:44 AM
have you figured out how to make a stopwatch yet? if so,help
Comment
Post
Cancel
sicarie
Recognized Expert
Specialist
Join Date:
Nov 2006
Posts:
4677
#6
Sep 21 '07, 12:57 PM
Originally posted by
totoy
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?
Comment
Post
Cancel
totoy
New Member
Join Date:
Sep 2007
Posts:
5
#7
Sep 22 '07, 07:54 AM
Originally posted by
sicarie
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
Comment
Post
Cancel
totoy
New Member
Join Date:
Sep 2007
Posts:
5
#8
Sep 22 '07, 08:02 AM
how can i find my posted question?
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#9
Sep 23 '07, 12:32 PM
Originally posted by
totoy
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"
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment