Changeset c6971d in git for kernel/timer.cc


Ignore:
Timestamp:
Jul 9, 2009, 2:28:31 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
f0edfeefcdd0f9c131187bc82a9af8d0cb7c40df
Parents:
b14053699cd89db8efa9555fbd217a30294502cc
Message:
*hannes: min_time and timer_resolution


git-svn-id: file:///usr/local/Singular/svn/trunk@11970 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/timer.cc

    rb14053 rc6971d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: timer.cc,v 1.9 2009-01-29 16:57:02 Singular Exp $ */
     4/* $Id: timer.cc,v 1.10 2009-07-09 12:28:31 Singular Exp $ */
    55
    66/*
     
    182182  double f =  ((double)curr) / (double)HZ;
    183183#endif
    184   if (f > mintime)
     184  if (f/timer_resolution > mintime)
    185185  {
    186186#ifdef EXTEND_TIMER_D
    187     Print("//%s %.2f sec (%d) >>%s<<\n" ,v ,f,iiOp,my_yylinebuf);
    188 #else
    189     Print("//%s %.2f sec\n" ,v ,f);
     187    Print("//%s %.2f/%d sec (%d) >>%s<<\n" ,v ,f,(int)timer_resolution,iiOp,my_yylinebuf);
     188#else
     189    if (timer_resolution==(double)1.0)
     190      Print("//%s %.2f sec\n" ,v ,f);
     191    else
     192      Print("//%s %.2f/%d sec\n" ,v ,f,(int)timer_resolution);
    190193#endif
    191194  }
Note: See TracChangeset for help on using the changeset viewer.