Skip to content

Modern Chrono CpuClock IsSupported

Paul Squires edited this page Oct 19, 2026 · 1 revision

Home › Date and Time (Chrono) › Chrono Date and Time › CpuClock.IsSupported

CpuClock.IsSupported

Returns true if the platform can report processor time.

Syntax

CpuClock.IsSupported( ) as boolean

Notes

  • When it is false the other CpuClock functions return an Invalid TimeSpan rather than a made-up number.

Examples

#import "std/chrono"
using chrono

if CpuClock.IsSupported( ) then
    print CpuClock.ProcessTime( ).IsValid      '' true
end if

Library: Chrono Date and Time
Category: Date and Time (Chrono)
Documented under: The Members

Clone this wiki locally