View Single Post
  #11   Spotlight this post!  
Unread 29-12-2012, 21:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Beta test teams: Has base processor utilization decreased?

Quote:
Originally Posted by apalrd View Post
The best metric we can get (in LabVIEW at least) is the RT Get CPU Loads block.
If there's a microsecond (or better) system clock, you can read it at the start (ts) and end (te) of each realtime task. These can be used to measure the margin and scheduling accuracy for each task.

Code:
// start of task
tmp=systemClock();
period=tmp-ts;
margin=tmp-te;
ts=tmp;

//
// task code goes here
//

te=systemClock();
// end of task