Return-Path: william@bourbon.usc.edu Delivery-Date: Thu Sep 18 14:39:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m8ILdLbv031497 for ; Thu, 18 Sep 2008 14:39:21 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m8ILepfZ025409 for ; Thu, 18 Sep 2008 14:40:51 -0700 Message-Id: <200809182140.m8ILepfZ025409@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Timespec Proj2 CS551 Date: Thu, 18 Sep 2008 14:40:51 -0700 From: Bill Cheng Someone wrote: > In the timespec the interarrival times and the service times > are integers or can they be real numbers ? Since gettimeofday() uses struct timeval, you can just use struct timeval to keep track of time and time intervals. As I've mentioned before, you should write a small function to calculate the interval between two time epochs. The resulting intervar can also be represented in struct timeval. -- Bill Cheng // bill.cheng@usc.edu