473,657 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doubts related to server based timer

Hi all,

I want to clear one doubt which i am facing regarding timer.

Suppose i have one timer in which i am generating some files. and
interval of my timer is say 5 min.

Say suppose at then my files are generated at time 12:30 am and then
as i set interval to 5 next file should gets generated to 12:35 but
what if i change my system time to 12:25 or 12:34.

So will my timer gets affected and if i reset timer to 12:32 at 12:30
will my files get generated at 12:37 or as 12:35.

Please clear my doubts.

Thanks in advance.

Feb 20 '06 #1
1 1383
Hi,

"archana" <tr************ **@yahoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hi all,

I want to clear one doubt which i am facing regarding timer.

Suppose i have one timer in which i am generating some files. and
interval of my timer is say 5 min.

Say suppose at then my files are generated at time 12:30 am and then
as i set interval to 5 next file should gets generated to 12:35 but
what if i change my system time to 12:25 or 12:34.

So will my timer gets affected and if i reset timer to 12:32 at 12:30
will my files get generated at 12:37 or as 12:35.

Please clear my doubts.


Did you try to run it ? The above questions can be easily answered by doing
that test.

I think that the timer works with an offset , it does't really care about
the time in the system but about a given number of miliseconds from the time
you started running it.
Again, a simple test will tel you how it does work in reality.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 20 '06 #2

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

Similar topics

3
3288
by: B Moor | last post by:
SServer PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 v 2000.8.00.76 (sp3) MS Office 2k3 MSJet ms04-014 (latest ost sp8) MDAC v2.8 RTM ADO 2.1 vb6.exe / ADO 2.0 I think this is a SQL Server/ADO problem as I have 2 applications with
1
1356
by: MS | last post by:
I have client sever application my client is windows based thin application and server has webService running. Right now Server serialized the data to the client using "XMLSerialization" form data Size is around 100 MB, I understand if we serialized the data using "Binary Serialization" form then it would be faster. But I have following query. 1) My application is windows based application both the client and server are windows...
5
5085
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue control. The service will "sleep" for 'n' seconds using the timer control and whenever the timer_elapsed event occurs, I use the performance counter object to determine availability of few resources. Based on the availability of resources, I use the...
3
1415
by: archana | last post by:
Hi all I am having application which is using server based timer that is timer from namespace system.timer. I am having windows service which i want to run everyday at some fix time. In service.cs class i am creating one worker thread and in thread procedure i am enabling one timer after thread procedure is completed and in timer's elapsed event i am recalling my function of actual processing.
2
1164
by: archana | last post by:
Hi all, I am having one confusion regarding windows based timer. I read somewhere that 'Be careful with stopping, because stopped timers are disabled and are subject to garbage collection. That means that stopped timers can not be started again.'
10
2086
by: archana | last post by:
Hi all, can anyone tell me how server based timer in .net works? Which one of either system.timers.timer, system.threading.timer is better for use in windows service. How worker thread call elapsed event. Will it depend on any of system factors?
0
935
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, We have one product. It is client/server based application. We have developed client application in VC++ 6.0. Our client is desktop based application like dialog based application. Client application will connect to server according to user requests. This is current scenario. We would like to make this application as a web-based application. I have core functionality in VC++ application in client application. I can put this...
2
1527
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, We have one product. It is client/server based application. We have developed client application in VC++ 6.0. Our client is desktop based application like dialog based application. Client application will connect to server according to user requests. This is current scenario. We would like to make this application as a web-based application. I have core functionality in VC++ application in client application. I can put this...
1
1118
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, We have one product. It is client/server based application. We have developed client application in VC++ 6.0. Our client is desktop based application like dialog based application. Client application will connect to server according to user requests. This is current scenario. We would like to make this application as a web-based application. I have core functionality in VC++ application in client application. I can put this...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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,...
0
7333
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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
4158
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...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
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
1957
muto222
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.