<< tic | Time functions | timeit >> |
t_s = time() |
t_s = time('s') |
t_ns = time('ns') |
a double: value of current time as the number of seconds since the epoch.
a unsigned integer 64 bit: value of current time as the number of nanoseconds since the epoch.
time returns the current time as the number of seconds or nanoseconds since the epoch.
The epoch is referenced to 00:00:00 UTC (Coordinated Universal Time) 1 Jan 1970.
t1=time()
sleep(10)
t2 = time()
t2 - t1
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET