equal
deleted
inserted
replaced
78 } |
78 } |
79 |
79 |
80 switch(clock_id) |
80 switch(clock_id) |
81 { |
81 { |
82 case CLOCK_REALTIME: |
82 case CLOCK_REALTIME: |
83 //We use TTime::UniversalTime() call to get the Universal time |
83 //Since Symbian OS is not realtime,we simulate the same using |
84 t.UniversalTime(); |
84 //the available wall clock.We use TTime::HomeTime() call to get |
|
85 //the wall clock time |
|
86 t.HomeTime(); |
85 err = t.SecondsFrom(UNIX_BASE, iSeconds); |
87 err = t.SecondsFrom(UNIX_BASE, iSeconds); |
86 t-=iSeconds;//extracting seconds info into iSeconds |
88 t-=iSeconds;//extracting seconds info into iSeconds |
87 if (!err) |
89 if (!err) |
88 { |
90 { |
89 tp->tv_sec = iSeconds.Int(); |
91 tp->tv_sec = iSeconds.Int(); |