genericopenlibs/openenvcore/libc/src/clock_funcs.cpp
branchRCL_3
changeset 75 254b651f304e
parent 57 2efc27d87e1c
--- a/genericopenlibs/openenvcore/libc/src/clock_funcs.cpp	Wed Sep 15 14:02:55 2010 +0300
+++ b/genericopenlibs/openenvcore/libc/src/clock_funcs.cpp	Wed Oct 13 16:27:53 2010 +0300
@@ -80,8 +80,10 @@
 	switch(clock_id)
 	{
 		case CLOCK_REALTIME:
-			//We use TTime::UniversalTime() call to get the Universal time
-			t.UniversalTime();			
+			//Since Symbian OS is not realtime,we simulate the same using
+			//the available wall clock.We use TTime::HomeTime() call to get
+			//the wall clock time
+			t.HomeTime();
 			err = t.SecondsFrom(UNIX_BASE, iSeconds);
 			t-=iSeconds;//extracting seconds info into iSeconds
 			if (!err)