Changeset 82df430 for src


Ignore:
Timestamp:
Apr 14, 2018, 7:11:03 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
0a89a8f
Parents:
2296885
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/time

    r2296885 r82df430  
    1010// Created On       : Wed Mar 14 23:18:57 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr 13 11:16:50 2018
    13 // Update Count     : 635
     12// Last Modified On : Sat Apr 14 17:48:23 2018
     13// Update Count     : 636
    1414//
    1515
     
    136136
    137137void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 );
     138static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; }
     139
    138140static inline void ?{}( Time & time, timeval t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000; }
    139 
    140 static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; }
    141 
    142141static inline Time ?=?( Time & time, timeval t ) with( time ) {
    143142        tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * (TIMEGRAN / 1_000_000LL);
     
    145144} // ?=?
    146145
    147 static inline void ?{}( Time & time, timespec t ) with( time ) {
    148         tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec;
    149 } // Time
    150 
     146static inline void ?{}( Time & time, timespec t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec; }
    151147static inline Time ?=?( Time & time, timespec t ) with( time ) {
    152148        tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec;
Note: See TracChangeset for help on using the changeset viewer.