From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9D339821DD for ; Thu, 2 Mar 2017 04:05:48 -0800 (PST) Received: by mail-ua0-x233.google.com with SMTP id 72so73736420uaf.3 for ; Thu, 02 Mar 2017 04:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZvIcP9W31BS0jsvbQ8OtiYEGqaWdF5wF5Fy5nlTpbMI=; b=g0su8BMWi6ZpFAfpCroyin00nQtJzXRhpCG8INyFT33y7HolqRO0teIz7H5hnnvJdN EouDS+bVBGFYmvVeWFGjB1wLl1GuTiCpaMLBl9F3sPtEBAspFkBPzoJ/ZT4DGC3pCX+/ AaOBEgc9GZufn75twgsDVoc8U/JlE/fQUYEcaep6EaZQqcjqcza0/06TVvYA0iYrvzm1 CwxNoz9Xkvix0V4oo+U9MeB3r0jGj7/88f5bcTiOK/npD/Q1a25y/CkUlxUjrMmE0/3U M7UD6S8gSgYX1JfpFMGeJ3CB3gySA6qGgnwTgLU8Z9h1qZ7BYTF2vZ6ioH0PjT5kX0/S em4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZvIcP9W31BS0jsvbQ8OtiYEGqaWdF5wF5Fy5nlTpbMI=; b=IAFCbugovB0QfmK+2qnu6TlYQoG5uLhfRnJqoFRXsIWnvmvMVNlGg5oDe6n6zV8mS0 6OL+6DAngnJfoun9MggR6D1rDnduAwYwQsA4SQxiF+y8j1XP2yh7rJ2KzOoKpBVokcdP icB0Pbys186IdrVKB2BBxDMjzU1WZqsZSbr5G59UKpPtg8YHjgTY0sFsvkA8XPwMNZTq s5M0Yk5Zg77tM4BaztvSEBz5Dee0Kaj8yV0Ya41RifbqWrXIZq/YBPuc2oQ1GPl6JaFp fa+wt4tAMizNyR8WkowiMCoYAdoZHSHVHjV9zWXlhhaoC2OJmqOy2mRblHRzjwc2AF90 HG8w== X-Gm-Message-State: AMke39nhjFLB8ETUfX/px4v7LqfelMvCKt54nSPVAXZIIuFgLvsxTh4aE4kcfnd9rvPYXdbXPe7FhTABMd/0mw== X-Received: by 10.31.89.197 with SMTP id n188mr2279664vkb.58.1488456347406; Thu, 02 Mar 2017 04:05:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.151.68 with HTTP; Thu, 2 Mar 2017 04:05:47 -0800 (PST) In-Reply-To: References: From: Michael Zimmermann Date: Thu, 2 Mar 2017 13:05:47 +0100 Message-ID: To: Arka Sharma Cc: "edk2-devel@lists.01.org" Subject: Re: "[edk] Caculating time delay in milliseconds" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 12:05:48 -0000 Content-Type: text/plain; charset=UTF-8 AFAIK the only way to do that is to use the platform specific TimerLib like this: UINT64 GetTimeMs ( VOID ) { return GetTimeInNanoSecond(GetPerformanceCounter()) / 1000000ULL; } Thanks Michael On Thu, Mar 2, 2017 at 12:53 PM, Arka Sharma wrote: > gRT->GetTime() is accurate about seconds.Is there any way to calculate > time difference in milliseconds ? > Let's say > > Time1 = GetTimeMs(); > > // > // Some tasks > // > > Time2 = GetTimeMs(); > > // > // Time taken > // > GetTimeDiff (Time1, Time2); > > Something like this > > Regards, > Arka > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel