Skip to content
Back to formatted view

Raw Message

Message-ID: <4EB7CEB2.9030401@statistik.tu-dortmund.de>
Date: 2011-11-07T12:27:30Z
From: Uwe Ligges
Subject: How much time a process need?
In-Reply-To: <1320660554.33057.YahooMailNeo@web120120.mail.ne1.yahoo.com>

On 07.11.2011 11:09, Alaios wrote:
> Dear all,
> I have finished a large function that takes around 1 day to finish.
> I was using system.time(callmyfunction()) to measure how much time it needed to finish, my problem is that I do not know how to interpret their numbers.
> I was looking to convert these results to something more readably like.
> "This function took 1 Day 2 hours and 35 minutes to complete."
>
> How I can convert the system.time output to something like that?


system.time() responds in seconds, hence you can apply simple arithmetic 
to get days, hours and minutes.

Uwe Ligges



>
> B.R
> Alex
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.