summaryrefslogtreecommitdiffstats
path: root/ProcessWin32.c
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2016-03-09 14:09:41 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-09 14:10:55 (GMT)
commitcd4fef3041be85e1ec9139a91efa8a96f74707c5 (patch)
tree29b6faac3b3ae47914135515dd68977cc633a09e /ProcessWin32.c
parent4ba9b473a20cdf1284522dabb170b611fbf0f02e (diff)
downloadCMake-cd4fef3041be85e1ec9139a91efa8a96f74707c5.zip
CMake-cd4fef3041be85e1ec9139a91efa8a96f74707c5.tar.gz
CMake-cd4fef3041be85e1ec9139a91efa8a96f74707c5.tar.bz2
KWSys 2016-03-09 (36d8666f)
Code extracted from: http://public.kitware.com/KWSys.git at commit 36d8666f44a75a6debb92c86c20f25d929d79cd1 (master). Upstream Shortlog ----------------- Zack Galbreath (1): 36d8666f Process: Add function to reset the start time of a process
Diffstat (limited to 'ProcessWin32.c')
-rw-r--r--ProcessWin32.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ProcessWin32.c b/ProcessWin32.c
index a18ea27..2b93e69 100644
--- a/ProcessWin32.c
+++ b/ProcessWin32.c
@@ -3017,3 +3017,14 @@ static BOOL WINAPI kwsysCtrlHandler(DWORD dwCtrlType)
/* Continue on to default Ctrl handler (which calls ExitProcess). */
return FALSE;
}
+
+/*--------------------------------------------------------------------------*/
+void kwsysProcess_ResetStartTime(kwsysProcess* cp)
+{
+ if(!cp)
+ {
+ return;
+ }
+ /* Reset start time. */
+ cp->StartTime = kwsysProcessTimeGetCurrent();
+}