Documentation ¶
Index ¶
- Constants
- func ClockGetres(clkId ClockidT, res *Timespec) c.Int
- func ClockGettime(clkId ClockidT, tp *Timespec) c.Int
- func ClockSettime(clkId ClockidT, tp *Timespec) c.Int
- func Ctime(timer *TimeT) string
- func Difftime(end, start TimeT) float64
- func Strftime(buf *c.Char, bufSize uintptr, format *c.Char, timeptr *Tm) uintptr
- type ClockT
- type ClockidT
- type TimeT
- type Timespec
- type Tm
Constants ¶
View Source
const ( // the system's real time (i.e. wall time) clock, expressed as the amount of time since the Epoch. // This is the same as the value returned by gettimeofday CLOCK_REALTIME = ClockidT(C.CLOCK_REALTIME) // clock that increments monotonically, tracking the time since an arbitrary point, and will continue // to increment while the system is asleep. CLOCK_MONOTONIC = ClockidT(C.CLOCK_MONOTONIC) // clock that increments monotonically, tracking the time since an arbitrary point like CLOCK_MONOTONIC. // However, this clock is unaffected by frequency or time adjustments. It should not be compared to // other system time sources. CLOCK_MONOTONIC_RAW = ClockidT(C.CLOCK_MONOTONIC_RAW) // clock that tracks the amount of CPU (in user- or kernel-mode) used by the calling process. CLOCK_PROCESS_CPUTIME_ID = ClockidT(C.CLOCK_PROCESS_CPUTIME_ID) // clock that tracks the amount of CPU (in user- or kernel-mode) used by the calling thread. CLOCK_THREAD_CPUTIME_ID = ClockidT(C.CLOCK_THREAD_CPUTIME_ID) )
View Source
const (
LLGoPackage = "decl"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.