~ubuntu-branches/ubuntu/precise/flightgear/precise

« back to all changes in this revision

Viewing changes to utils/GPSsmooth/gps_main.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Ove Kaaven
  • Date: 2011-01-30 15:46:35 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110130154635-rlynmg9n5hzxq5xe
Tags: 2.0.0-3
* Recommend fgfs-aircraft-base and fgfs-models-base.
  Closes. #610276.
* Added note about scenery SharedModels.tgz to README.Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
 
466
466
        current_time_stamp.stamp();
467
467
        /* Convert to ms */
468
 
        double elapsed_us = current_time_stamp - last_time_stamp;
 
468
        double elapsed_us = (current_time_stamp - last_time_stamp).toUSecs();
469
469
        if ( elapsed_us < (frame_us - 2000) ) {
470
470
            double requested_us = (frame_us - elapsed_us) - 2000 ;
471
471
            ulMilliSecondSleep ( (int)(requested_us / 1000.0) ) ;
472
472
        }
473
473
        current_time_stamp.stamp();
474
 
        while ( current_time_stamp - last_time_stamp < frame_us ) {
 
474
        while ( (current_time_stamp - last_time_stamp).toUSecs() < frame_us ) {
475
475
            current_time_stamp.stamp();
476
476
        }
477
477