Skip to content

Modern Chrono TimeSpan FromMicroseconds

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Date and Time (Chrono) › Chrono Date and Time › TimeSpan.FromMicroseconds

TimeSpan.FromMicroseconds

Returns a duration of a whole number of microseconds.

Syntax

TimeSpan.FromMicroseconds( int64 )

Notes

  • longint, not double

Examples

#import "std/chrono"
using chrono

print TimeSpan.FromMicroseconds( 1000000 ).TotalSeconds      '' 1

'' Takes a LONGINT, not a double like the other From* functions: at
'' microsecond resolution a double would start losing whole ticks
print TimeSpan.FromMicroseconds( 1 ).Ticks       '' 10 -- ten 100 ns ticks

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

Clone this wiki locally