1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Use microruntime() rather than doing it by hand.

This commit is contained in:
Poul-Henning Kamp 1998-04-04 18:56:54 +00:00
parent 91ad39c6b3
commit cc6447a365
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35034
2 changed files with 4 additions and 6 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux_misc.c,v 1.34 1998/02/25 05:33:06 bde Exp $
* $Id: linux_misc.c,v 1.35 1998/03/30 09:49:34 phk Exp $
*/
#include <sys/param.h>
@ -694,8 +694,7 @@ linux_times(struct proc *p, struct linux_times_args *args)
sizeof(struct linux_times_argv))))
return error;
microtime(&tv);
timevalsub(&tv, &boottime);
microruntime(&tv);
p->p_retval[0] = (int)CONVTCK(tv);
return 0;
}

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux_misc.c,v 1.34 1998/02/25 05:33:06 bde Exp $
* $Id: linux_misc.c,v 1.35 1998/03/30 09:49:34 phk Exp $
*/
#include <sys/param.h>
@ -694,8 +694,7 @@ linux_times(struct proc *p, struct linux_times_args *args)
sizeof(struct linux_times_argv))))
return error;
microtime(&tv);
timevalsub(&tv, &boottime);
microruntime(&tv);
p->p_retval[0] = (int)CONVTCK(tv);
return 0;
}