c# windows service - not quite the intervals -


    private const int intervaltime = 5;        protected override void onstart(string[] args)     {     }     public long dosomething()     {         intervalstopwatch.reset();         intervalstopwatch.start();         facade.execute();         intervalstopwatch.stop();         return intervalstopwatch.elapsedmilliseconds;     } 

hi, i'd create service similar intervals, purpose count execution time of function "dosomething" , if time >= intervaltime recall function, if not ,wait until passes interval time , call function. best practise this? , don't know how that.

look quartz.net, seems need


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -