VirtualBox

Changeset 2601 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 12, 2007 6:47:11 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21108
Message:

show last state change timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r2594 r2601  
    805805            break;
    806806    }
    807     RTPrintf("State:           %s\n", pszState);
     807    LONG64 stateSince;
     808    machine->COMGETTER(LastStateChange)(&stateSince);
     809    RTTIMESPEC timeSpec;
     810    RTTimeSpecSetMilli(&timeSpec, stateSince);
     811    char pszTime[30] = {0};
     812    RTTimeSpecToString(&timeSpec, pszTime, 30);
     813    RTPrintf("State:           %s (since %s)\n", pszState, pszTime);
    808814
    809815    ComPtr<IFloppyDrive> floppyDrive;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette