seconds man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

SECONDS(10.2)							 SECONDS(10.2)

NAME
       seconds, ticks, HZ, MS2HZ, MS2TK, TK2MS, TK2SEC - kernel times and time
       conversions

SYNOPSIS
       long    seconds(void)

       ulong   ticks(void)

       #define HZ	   ...
       #define MS2HZ(t)	   ...
       #define TK2SEC(t)   ...
       #define TK2MS(t)	   ...
       #define MS2TK(m)	   ...

DESCRIPTION
       Seconds returns the system's idea of the current time as the number  of
       seconds since the start of the epoch (00:00:00 GMT, January 1, 1970).

       Ticks  returns  the number of system-dependent clock ticks since system
       boot.

       The system clock frequency  is  platform-dependent.   Several  symbolic
       constants  and macro functions are defined by the file mem.h to convert
       between different time units:

       HZ     The number of clock ticks per second.

       MS2HZ  Milliseconds per clock tick.

       TK2SEC(t)
	      Convert t clock ticks to seconds and return the result (truncatā€
	      ing not rounding).

       TK2MS(t)
	      Convert t clock ticks to milliseconds and return the result.

       MS2TK(m)
	      Convert  m  milliseconds	to  clock  ticks and return the result
	      (truncating).

       The functions are often used to calculate delays for timing  functions,
       for instance:

	      if(atactlrwait(dp->cp, DHmagic, 0, MS2TK(100))){
		      ...
	      }

								 SECONDS(10.2)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net