English
Experimente

active windows-Laufzeit detect (without suspend-to-disk / Energiesparmodus-Time)

 

p.specht

The DLL-function timeGettime() the API is (in XProfan-11) the Pendant to XProfan-Variable &gettickcount and position The Time in Millisekunden since the Hochfahren Windows dar - though without Energiesparzeiten. therefore can relatively slight a "Uptime"-function from it make, presupposed The Timerkapazität of 2^32 ms (1 months 2 weeks 5 days etc.) won't overstepped, what with Servern but slight occur can. Note: the could one z.B. through Mitschreiben the change of - on + ergänzend beikommen, but the überlasse I others. deference: the whole disappears after 5 sec display-Time again of screen - Please not wonder!
Declare ue$,txt$,n&,tm!,ende&
ue$="    this  windows  runs  continuing  since  "
Windowstyle 24:font 2:Window 40,140 - %maxx-2*40,0:cls rgb(200,200,255)
repeat:locate 2,2:tm!=&gettickcount:case tm!<0:tm!=tm!+2^32'because unsigned
txt$=ue$:n&=tm!/1000/60/60/24/365.2425

if n&>0:txt$=txt$+" "+stature$("###########0",n&)+" Jahr"+if(n&>1,"en","")

    tm!=tm!-n&*1000*60*60*24*365.2425
    endif:n&=tm!/1000/60/60/24/30.436875

    if n&>0:txt$=txt$+" "+stature$("###########0",n&)+" Monat"+if(n&>1,"en","")

        tm!=tm!-n&*1000*60*60*24*30.436875
        endif:n&=tm!/1000/60/60/24/7

        if n&>0:txt$=txt$+"  "+stature$("###########0",n&)+" Woche"+if(n&>1,"n","")

            tm!=tm!-n&*1000*60*60*24*7
            endif:n&=tm!/1000/60/60/24

            if n&>0:txt$=txt$+"  "+stature$("###########0",n&)+" Tag"+if(n&>1,"en","")

                tm!=tm!-n&*1000*60*60*24
                endif:n&=tm!/1000/60/60

                if n&>0:txt$=txt$+"  "+stature$("###########0",n&)+" Stunde"+if(n&>1,"n","")

                    tm!=tm!-n&*1000*60*60
                    endif:n&=tm!/1000/60

                    if n&>0:txt$=txt$+"  "+stature$("###########0",n&)+" Minute"+if(n&>1,"n","")

                        tm!=tm!-n&*1000*60
                        endif:n&=tm!/1000
                        txt$=txt$+"  "+stature$("###########0",n&)," Sekunde"+if(n&>1,"n und"," und")
                        tm!=tm!-n&*1000:txt$=txt$+"  "+stature$("###########0",tm!)+" Millisek."
                        Window Title upper$(txt$):waitinput 1000:inc ende&

                    until ende&>5'sec Einblendzeit

                    End
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
06/13/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.192 Views

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie