Symbian3/PDK/Source/GUID-EA6965FB-5BB6-5110-9A16-B5403E1983D4.dita
changeset 1 25a17d01db0c
child 3 46218c8b8afa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/PDK/Source/GUID-EA6965FB-5BB6-5110-9A16-B5403E1983D4.dita	Fri Jan 22 18:26:19 2010 +0000
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
+<!-- This component and the accompanying materials are made available under the terms of the License 
+"Eclipse Public License v1.0" which accompanies this distribution, 
+and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
+<!-- Initial Contributors:
+    Nokia Corporation - initial contribution.
+Contributors: 
+-->
+<!DOCTYPE concept
+  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
+<concept xml:lang="en" id="GUID-EA6965FB-5BB6-5110-9A16-B5403E1983D4"><title>How to wait for a given time</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>Use the <codeph>At()</codeph> function to set the timer to complete at a specific time.</p> <p>The following example suspends the thread until the current time plus ten seconds.</p> <codeblock id="GUID-83E4B363-6E1B-5031-84EF-C3F2D104106B" xml:space="preserve">
+// get current time (microseconds since 0AD nominal Gregorian)
+TTime time; 
+time.HomeTime();  
+
+// add ten seconds to the time
+TTimeIntervalSeconds timeIntervalSeconds(10);
+time += timeIntervalSeconds;
+
+// issue and wait
+timer.At(timerStatus,time);
+User::WaitForRequest(timerStatus);</codeblock> </conbody></concept>
\ No newline at end of file