Changeset db242b1 in git
- Timestamp:
- Oct 15, 1998, 4:13:22 PM (26 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 7d6efe4f357a62dceeb677ff7b195fd1445d7096
- Parents:
- 77ff8e26463d0b2d6d61c497d5e9481b95774339
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/timer.cc
r77ff8e rdb242b1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: timer.cc,v 1.1 0 1998-04-27 10:45:21 pohlExp $ */4 /* $Id: timer.cc,v 1.11 1998-10-15 14:13:22 Singular Exp $ */ 5 5 6 6 /* … … 157 157 { 158 158 struct timeval now; 159 159 160 160 gettimeofday(&now, &tzp); 161 161 … … 165 165 now.tv_sec --; 166 166 } 167 167 168 168 double f =((double) (now.tv_sec - startRl.tv_sec))*timer_resolution + 169 169 ((double) (now.tv_usec - startRl.tv_usec))*timer_resolution / 170 170 (double) 1000000; 171 171 172 172 return (int)(f+0.5); 173 173 } … … 188 188 now.tv_sec --; 189 189 } 190 190 191 191 double f =((double) (now.tv_sec - siStartRTime.tv_sec)) + 192 192 ((double) (now.tv_usec - siStartRTime.tv_usec)) / … … 194 194 195 195 if (f > mintime) 196 Print("//%s %.2f sec \n" ,v ,f); 196 Print("//%s %.2f sec \n" ,v ,f); 197 197 } 198 198 #endif
Note: See TracChangeset
for help on using the changeset viewer.