GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Nov-2004, 22:24
Poolan Poolan is offline
New Member
 
Join Date: Oct 2004
Posts: 19
Poolan is on a distinguished road

Track change in system time


I am develoing one application which is fully depend on system time. But as i cannot restrict the system users from editing the system time, it will cause problem to me.

Is there any way from the application to trap the reseting the system time.
  #2  
Old 19-Nov-2004, 02:52
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
You can keep the user from editing things within your program, but unless you have a very intimate knowledge of the OS, you can't stop the user from editing the system time. It is the right given by the BIOS of the user to edit his/her system time. If you tell me why you want to keep the user from editing the system time, I might be able to help you develop an alternate solution...
__________________
-Aaron
  #3  
Old 19-Nov-2004, 03:02
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by Poolan
I am develoing one application which is fully depend on system time. But as i cannot restrict the system users from editing the system time, it will cause problem to me.

Is there any way from the application to trap the reseting the system time.
If you are reading the system time at a specific rate (say every minute or so) and the difference between current time and the previous time is not 1 minute (give or take a tolerance of maybe 5 seconds), the time was reset.
__________________

Age is unimportant -- except in cheese
  #4  
Old 19-Nov-2004, 04:08
Poolan Poolan is offline
New Member
 
Join Date: Oct 2004
Posts: 19
Poolan is on a distinguished road
But I don't want to restrict editing system time. One which i need is to track the change. I was planning to use Timer and continuously checking the system time after a fied interval of time. But as the timer message is having low priority I feel that this will not be accurate. Thats why I am searching for an alternate way.
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
Having a problem Chuckles Computer Hardware Forum 19 13-Sep-2004 12:17
INtime real time system usage Bernard Computer Software Forum - Windows 0 28-Jul-2004 04:11
[CONTEST?]Data Structure Test dsmith C Programming Language 2 06-Jun-2004 15:13
Re: Programming Techniques WaltP C Programming Language 0 09-Mar-2004 23:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:35.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.