Artificial intelligent assistant

xclock with nanosecond (or fractional second) resolution I currently run: `xclock -digital -update 1 -strftime '%a %d %b %Y %H:%M:%S'` and am reasonably happy with the resulting xclock, but don't find it quite annoying enough. Is there any way I can add nanosecond (or decisecond, centisecond, millisecond, microsecond) precision? I tried adding a `%N` to the `-strftime` argument, but, unlike `date (GNU coreutils) 7.2`, it just gives me a literal '%N'. I don't know what version of xclock I'm running and `xclock --version` is unhelpful, but this is the version that "ships with" Fedora Core 24 if that's helpful.

`wish` of TCL can solve this readily


#!/usr/bin/env wish8.5

set intervalms 1
variable theclock

proc setclock {} {
global intervalms theclock
set micros [clock microseconds]
set epoch [expr $micros / 1000000]
set micros [format "%06d" [expr $micros % 1000000]]
set theclock [clock format $epoch -format "%a %b %d %Y %H:%M:%S.$micros"]
after $intervalms [list setclock]
}

font create TtyFont -family Courier -size 16 -weight bold
pack [label .clock -font TtyFont -textvariable theclock]

grid .clock -row 1 -column 1
grid rowconfigure . 1 -weight 1
grid columnconfigure . 1 -weight 1

wm geometry . 400x60+0+0

setclock


But if annoying is your goal...

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy bfefb635c78958e4971a4c28b9263846