CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

next event in time scale

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
40inD



Joined: 30 Jul 2007
Posts: 112
Location: Moscow, Russia

View user's profile Send private message

next event in time scale
PostPosted: Fri Jan 16, 2015 8:05 am     Reply with quote

There is a time tick counter. Several processes has events: procX_start_time, procX_stop_time. The ranges of start - stop moments of all processes can overlap. Values of those moments are written as tick value.
For examle:
Code:

proc1_start_time= 100;
proc1_stop_time= 200;
proc2_start_time= 150;
proc2_stop_time= 250;

How to find the next event (its name and time) in any current tick?
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Tue Jan 20, 2015 2:59 pm     Reply with quote

Just sort your times.

Look at qsort.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group