Changeset 43:0b04f7b6406e in rrlib_util for tTime.h


Ignore:
Timestamp:
22.01.2012 16:08:16 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
44:b8711bbdd13e, 46:693922a1844d
Phase:
public
Message:

Reformatted with astyle 2.02.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tTime.h

    r34 r43  
    9999# else 
    100100 
    101     return tTime(0, clock()*(1000000 / CLOCKS_PER_SEC)); 
     101    return tTime(0, clock() * (1000000 / CLOCKS_PER_SEC)); 
    102102# endif 
    103103 
     
    119119  static inline tTime FutureMSec(long msec) 
    120120  { 
    121     tTime ntime(0, msec*1000); 
     121    tTime ntime(0, msec * 1000); 
    122122    //FromMSec(msec); 
    123123    ntime += tTime::Now(); 
     
    191191  inline long long ToNSec()const 
    192192  { 
    193     return ((long long)tv_usec + (long long)tv_sec*1000000)*1000; 
     193    return ((long long)tv_usec + (long long)tv_sec * 1000000) * 1000; 
    194194  } 
    195195 
     
    197197  inline long long ToUSec()const 
    198198  { 
    199     return (long long)tv_usec + (long long)tv_sec*1000000; 
     199    return (long long)tv_usec + (long long)tv_sec * 1000000; 
    200200  } 
    201201 
     
    203203  inline long long ToMSec()const 
    204204  { 
    205     return (long long)tv_usec / 1000 + (long long)tv_sec*1000; 
     205    return (long long)tv_usec / 1000 + (long long)tv_sec * 1000; 
    206206  } 
    207207 
     
    364364  operator timespec() 
    365365  { 
    366     timespec t = {tv_sec, 1000*tv_usec}; 
     366    timespec t = {tv_sec, 1000 * tv_usec}; 
    367367    return t; 
    368368  } 
Note: See TracChangeset for help on using the changeset viewer.